Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A suite of shell scripts for FLACs and MP3s' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A suite of shell scripts for FLACs and MP3s
Authored by: koncept on Mar 31, '04 11:26:05AM

cmd=`basename $0` # works but runs an external command
cmd=${0##*/}  # same thing, but runs within the shell, and faster

Or the file extension of a file:
fileExt=${file##*.}



[ Reply to This | # ]