That's what opensource is all about..
That's what I like about unixes so much !!
You could do this that and thensome or something totally different and get the exact same end result..
Some like it one way, some the other..
Printable View
That's what opensource is all about..
That's what I like about unixes so much !!
You could do this that and thensome or something totally different and get the exact same end result..
Some like it one way, some the other..
If you know exactly what you want to find and replace it with, then this is a quick fix...
perl -e 's/TextToFind/NewText/gi' -p -i Filename
It will find all instances of "TextToFind" and replace it with "NewText" in file "Filename"
yup.. that's one way, but why use perl..
sed -e 's/TextToFind/NewText/gi' -i.old Filename
this also makes a backup of the origional, called Filename.old
lol thanks guys. i wasnt plannin on using perl but now i might. thanks alot, especially for the bash script jinx. appreciate it.