Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stupid shell stuff: prepending a character on each line



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bill Bogstad wrote:
> 
> sed 's/^/./' -i file-to-change
> 
> will add a period to the beginning of every line in the file 'file-to-change'.
> 
> I'm not sure if the '-i' option is available on all systems.
> 
It is available on my system; looping through each file and executing
this line in my script does the job.  Thanks, Bill - and David, with an
alternate solution!

 -Don
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLSSL1iVR8AmYXiFARAo/QAKCOvC2DPN/mJPP+D7Lt9rtfll7kXwCdGI61
hxQG/ImaXJZUoHksdyjDcH8=
=JSv5
-----END PGP SIGNATURE-----






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org