Wednesday, July 25, 2012

remove file extension in shell script

# name without extension
name=${file%\.*}

reference:
http://www.unix.com/shell-programming-scripting/40360-remove-file-extension.html

No comments:

Post a Comment