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 'Unix Tip: Stripping file extensions with the basename command '
No comments:
Post a Comment