Really quick for loop I just ran for a bunch of files in a directory that I wanted to no longer have a .pdf
extension:
for file in *; do ext=${file##*.}; fname=`basename $file .$ext`; mv $file $fname; done
Inspiration from here.
Really quick for loop I just ran for a bunch of files in a directory that I wanted to no longer have a .pdf
extension:
for file in *; do ext=${file##*.}; fname=`basename $file .$ext`; mv $file $fname; done
Inspiration from here.