Sample Header Ad - 728x90

Remove multiple possible suffixes

9 votes
2 answers
9669 views
Example: I want to create a quick command to shrink images (for my filebrowser). ... FN="/tmp/some-image.jpg" gm convert "$FN" -resize 50% "$(dirname $FN)/$(basename $FN .jpg/png/gif).jpg" ... How can I specify that more than one suffix should be stripped?
Asked by Profpatsch (1869 rep)
May 8, 2014, 10:56 AM
Last activity: Mar 2, 2023, 05:35 PM