[Ilugc] Help on Vi Editor

  • From: suraj@xxxxxxxxxxx (Suraj)
  • Date: Tue Mar 15 07:39:09 2005

Binand Sethumadhavan wrote: 
,----
| perl -pi -e 's/$/@somedomain.com/' filename

| Create a backup of your file before you try anything!
`----

Or if you want to not screw the input file, then make it:

perl -pi -e 's/$/@somedomain.com/' <filename

cheers,

  -Suraj

-- 
,-----------------[http://www.symonds.net/~suraj/]---o
| Patnam Subramania Iyer was called Little Tyagaraja.
`------------------------------[suraj@xxxxxxxxxxx]---o

Other related posts: