sed 's/^/You /' test.txt > new-test.txt and awk '{print "admin "$0}' testfile.txt
Thru much reading and research. I have found that with awk and sed I can prepend a word and 4 spaces (much rather tab) at the beginning of each line. However it is not consistent. I get either one or both of the examples below. And this will occur in the same file.
Ex 1
FSvV
FSVv
FSVV
fsvw
fsvw
fsvW
fsVw
fsVW
Ex 2
JOJs
JOJS
jojt
jojt
jojT
(Notice) When I typed this the words were out of line some. However when I posted this it straightened them up.
Now am I doing something wrong? Which would be more able to do this job best? One last thing, I can get it to write a new file. Is there a way to write to a new file and to console so I know here it is so I have an idea how much longer it will take?
Thru much reading and research. I have found that with awk and sed I can prepend a word and 4 spaces (much rather tab) at the beginning of each line. However it is not consistent. I get either one or both of the examples below. And this will occur in the same file.
Ex 1
FSvV
FSVv
FSVV
fsvw
fsvw
fsvW
fsVw
fsVW
Ex 2
JOJs
JOJS
jojt
jojt
jojT
(Notice) When I typed this the words were out of line some. However when I posted this it straightened them up.
Now am I doing something wrong? Which would be more able to do this job best? One last thing, I can get it to write a new file. Is there a way to write to a new file and to console so I know here it is so I have an idea how much longer it will take?