hi!
i need to add a string to each line of a file.
i am using
sed -e 's/$/&,OM6500/g' <$filename>$new_filename
but this adds the string ",OM6500" to the last line which is a blank line. How can i avoid that.
as an example, this is what a sample line has right now
2004-07-16,00:07:00,unknown macAddr,OCLD-NEND,1-OPT-1,0.0,0.0,0.0,0.0,0,0.0,0
and the line should look like
2004-07-16,00:07:00,unknown macAddr,OCLD-NEND,1-OPT-1,0.0,0.0,0.0,0.0,0,0.0,0,OM6500
thanks