Rants and ravings of a semi-autistic developer who has a hard time remembering idiotic nonsense details. Why remember it, when you know where to find it.
Wednesday, October 7, 2009
Perl Substitution and Write Oneliner
Always looking for the proper syntax:
bash-3.2$ perl -i -pe 's/751818/akaan/' andre
-i = takes the first argument as a file -e = execute command -p = runs command surrounding while (<FILE>) { }
No comments:
Post a Comment