Can I put comments (or something functionally equivalent) into a sed command file? subs.sed Answer Yes, comments can be added to a sed file using #. From the manual page of sed: Command Synopsis … The comment extends until the next newline (or the end of a -e script fragment).