I'm needing to add a "hour:min" to the end of each line in a document. The document in this case is only going to be one line.
if this inserts it at the end, what needs to be changed to add something at the end...
/bin/echo "%s/^/$filler/g\nwq!" | ex -s $oFile
Thank you...
sed 's/$/hh:mm/g' file1
Try sed -e 's/$/hour:min/' InFile >OutFile
I have not worked with ex, but it looks like you meant that it was adding in the beginning, not in the end, to add in the end use the same construction "s/$/MyString". And I do not know what '!' is doing.
Good luck.