One of the most common mistakes made by Linux users, is to run free (Mem: line) or sar to get memory utilization. The memory used fields include the space used by the OS to cache files and directory info cace,…
Category: Unix Shell Scripting
Working with files names that have spaces and special characters
Sometimes you need to work with multiple files that have spaces in their names. To do this you can backslash the special characters (\) or put quotes around their names..If you use filename completion, it should backslash the characters for…
Truncating file name at – or .
HOST=bob-n.fsprings.com echo ${HOST%%[-\.]*}