Unix – Extract File Extension and Filename from Filepath


#file extension
for f in *; do fn="${f%.*}";echo "fn=$fn,f=$f"; done;


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *