That should work. Of course, the sed command loldier gave must replace the one that deletes every line with "#". Also, writing "$filename" instead of $filename allows the file name to contain characters such as spaces, which have a "special" meaning for the shell.

Reply via email to