Tag: OSX
bash – df to get space usage by volume
1234567891011#display current Volume in 1024-byte blocks df -k . #display ALL Volumes in megabytes df -m #display /home Volume in gigabytes df -g /home #display ALL Volumes … Read More
bash – pass arguments with flags to script
Pass arguments in any order, with ability to have some of the flags optional: 12345678910while getopts u:d:p:f: option do case "${option}" in u) USER=${OPTARG};; d) DATE=${OPTARG};; p) PRODUCT=${OPTARG};; f) FORMAT=${OPTARG};; … Read More
bash: for – looping over and processing files in current directory
A one liner to go over all the files (can filter by file type) and apply a process. The example below shows all audio files in WAV format (*.wav) to … Read More
scp to copy files
scp to PUSH 1scp source-file.txt [email protected]:/save/here scp to PULL 1scp [email protected]:/source-loc/source-file.txt destination.txt REFERENCE
OSX Priveleged Helper Tools leaving back doors open
Check 1/Library/PrivilegedHelperTools folder in Finder for installed Helper Tools and delete those which are not needed. *Especially important if you have NOT done a clean reinstall in a long time. … Read More
clipboard history on OSX
CLIPY – simple, easy to copy multiple items, and past from the list. Make sure to assign a SHORTCUT KEY! 1brew cask install clipy MACCY – clipboard history with a … Read More
moreutils: the utilities package every UNIX/Linux/Mac OS developer should know
SOURCE: CLEAN CODING Amazing additions to the cli toolset: combine – combine lines in two files using boolean operators AND NOT OR XOR ifdata – ifconfig with simple to parse … Read More