Using sed for instant versioning of the files

Whenever I work with WordPress themes, I have to use either an IDE or manually add versions to each file in the template. ( Though this is the first time I am commenting my themes 😛 ). So I wanted to save some time implementing it. Why not use sed for the same.

This command does the trick for me 😛

sed -i ‘s/wpboot 0.1/wpboot 0.2/g’ *.php

Published by

Mohit Kumar

A simple person who likes to share his thoughts on this blog. Know more about me

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.