How Do I Find a Specific File Extension in Unix?
Contents How Do You Find the File Extension in Unix? Filename=`Basename $Filepath` Fileext=${Filename##*. } by Doing That I Can Get Extension of Bz2 from the...
Contents
How do you find the file extension in Unix?
filename=`basename $filepath` fileext=${filename##*.} By doing that I can get extension of bz2 from the path /dir/subdir/file.
Must Read
How do I search for a file with a specific extension?
For finding a specific file type, simply use the ‘type:’ command, followed by the file extension. For example, you can find . docx files by searching ‘type: . docx’.