I have the following bash code which loops through a text file, line by line .. im trying to prefix the work \'prefix\' to each line but instead am getting this error:
a one-line awk command should do the trick also:
awk '{print "prefix" $0}' file