how to extract the exentention of file linux code example Example: basename bash basename(1) - strip directory and suffix from filenames