Tag Archives for linux

Renaming multiple files in a folder to a numbered format from the terminal

This is just for my reference. I needed to rename a whole lot of png files in a folder from filename.png, some-other-filename.png to 0.png, 1.png etc. It took a little bit of experimenting and it lead me to: count=0; for … Continue reading

17. October 2011 by Walmik
Categories: Tips, Useful | Tags: , | Leave a comment

How to find and replace in multiple files from the terminal

You have to kiss a few frogs before you find a prince. -Anonymous There are times when you d like to search for a word/phrase/regular expression in a number of files together and optionally replace it with something else. If … Continue reading

12. July 2011 by Walmik
Categories: How To | Tags: , | Leave a comment