meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Wednesday, February 13, 2008

Unix Tip: Stripping file extensions with the basename command

I recently discovered a new trick for using basename to extract filenames from a full pathnames. This can be useful if you want to extract some portion of a file's name and then reuse it. For example, if you want to find the differences between a number of files with .old extensions and the original files. ...continue reading 'Stripping file extensions with the basename command'

Labels:

0 Comments:

Post a Comment

<< Home