Posted in Command Line, Linux, Perl Remove Extension in Shell Scripting Binny V A June 27, 2007 Leave a Comment on Remove Extension in Shell Scripting This command will list all the files a folder without their extensions. Comes handy when doing shell scripting perl -e 'while(<*.*>){s/\..{3}//i;print "File \"_\"\n";}print "\n";' Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.