Returns the last file extension in the file name
echo "thisfile.txt.log"awk -F . '{print $NF}' # returns "log"
http://liquidat.wordpress.com/2007/09/29/short-tip-get-file-extension-in-shell-script/
Showing posts with label awk. Show all posts
Showing posts with label awk. Show all posts
Thursday, August 20, 2009
Subscribe to:
Posts (Atom)
