removing file extensions from multiple files.
From Carlo Perassi (http://perassi.org/), a nice example of how to use awk and the parentheses in the bash shell to remove file extensions from multiple files. # substitute jpg with the extension you need (twice in the line) for i in $(ls *jpg | awk -F “.” ‘{print $1}’); do mv $i.jpg $i; done in […]
Filed under: Social science computing by Mark Manger
No Comments »