Escrito por guillem en Linux
To do a multiple file replace of a specified string, just run the following
perl -pi.bak -e ’s/what to change/what to change to/g’ *
This also makes a backup of the files, with extension .bak
If you just want to modify, for example, PHP files, use the same but at the end replace ‘*’ with ‘*.php’
That’s all
No Hay Comentarios »
Escrito por guillem en Linux
Easy way to find inside files on Linux:
grep -r “what youre looking for” *
Yup, that’s it!
No Hay Comentarios »
Escrito por guillem en Linux
This is just a quick note on how to check email router with exim:
exim -bt test@test.com
Where test@test.com is the address you’d like to test.
No Hay Comentarios »