↧
Change the Extension of Multiple Files in Linux
In this example, we will change all files with extension ‘.info’ to ‘.txt’. Rename all *.info files in one folder rename .info .txt *.info That should read as.. rename <replace this string>...
View ArticleCommand to Replace a String in all Files in Current Directory
Replaces all instance of ‘<old string>’ with ‘<new sting>’ in all the files of the current directory. perl -pi -e "s/<old string>/<new string>/g;" *...
View ArticleRename Images Based on Exif Date
Renames all the files in the current folder based on the Exif date of that image. You’ll need the ‘jhead’ command tool – use apt-get to install it. for i in *; do mv $i "$(jhead $i | grep date | sed...
View Article