Adding to the front of a line

Smoot Carl-Mitchell smoot at
Tue Jan 20 03:57:31 UTC 2009

Here is a perl one liner which does what you need:

perl -pi -e 's/^/ /' file file ...

See "man perlrun" for an explanation of the perl options that make this
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at
+1 480 922 7313
cell: +1 602 421 9005

More information about the ubuntu-users mailing list