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