If you’re on UNIX you know ls will list files in a directory but typically you’ll get something like You can simily stat the file(s) with the below What if we work with stat and make it easier?
Category: UNIX Shell Scripts
UNIX – SED Remove Comment Lines
This script will remove all lines that start with # along with all comments. Whatever file you choose I suggest you view first then execute
Mac OS X Terminal – Parallels – Reset Windows User Password
Forgot your password to your Parallels Windows Virtual Machine? Power up your Windows VM then run this script to list all machines as you need the ID You’ll see something like this Copy the UUID minus the { } brackets Run this next piece for each user you want to…
Mac OSX Terminal – Get Stored Wireless (Wi-Fi) Password
Addition to Find & Scan Wireless Networks the additional line will require a password but then display the stored password for the defined router name.
UNIX – Terminal – Oh My Zsh Setup
As much as I like Oh My Zsh sometimes you have to go back to original terminal as not all things are supported. NOTE: This is part of a setup I do for new computers, see HomeBrew – Mac OS Setup For more information on Oh My Zsh, see https://github.com/robbyrussell/oh-my-zsh
Mac OS X Terminal – New Computer Setup Script
This is a collection of configurations for the setup a new Mac in a business environment.
Mac OSX Terminal – Get Artist and Song From iTunes PlayList Export
There are more elegant ways to do this but I got bored and thought I’d do something that is only done with base Mac OSX tools
Azure Red Hat – RHUI Update
Most of the this script is based on the document “Red Hat Update Infrastructure (RHUI) for on-demand Red Hat Enterprise Linux VMs in Azure” at https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-linux-update-infrastructure-redhat?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json My change will first check if the update was already installed, if not it will follow the process to install See updates at: https://gitlab.com/Kittell-RedHat/AzureRepo/raw/master/AzureRedHatRepoUpdate.sh