pasting text into an existing file
I have a text file that has over 300 lines that I need to paste identical data to. What is the easiest way to do this? For example if I have a file that has lines of text xxxxxxxx and I would like to change each line to look like this "display text(xxxxxxxx)". What would be the easiest way to do this? Would I do something like
cat xxxxx.txt while read line
do ?
This is what I currently have:
xxxxxxxx
xxxxxxxx
xxxxxxxx
xxxxxxxx
xxxxxxxx
This is what I want to change it to.
display text(xxxxxxxx)
display text(xxxxxxxx)
display text(xxxxxxxx)
display text(xxxxxxxx)
display text(xxxxxxxx)
Thanks,
|