Jan 4, 2005 #1 aahan Programmer Mar 28, 2002 15 US Would like to know a quick way to appending 2 characters before each and every line in a huge file. Looking for an efficient way to do it. Thanks
Would like to know a quick way to appending 2 characters before each and every line in a huge file. Looking for an efficient way to do it. Thanks
Jan 4, 2005 #2 ogniemi Technical User Nov 7, 2003 1,041 PL sed s/^/01/g filename >filename.2 will do append 01 on begin of all lines in file "filename" and put output to filename.2 Upvote 0 Downvote
sed s/^/01/g filename >filename.2 will do append 01 on begin of all lines in file "filename" and put output to filename.2