我想知道是否可以在批处理文件命令中有注释。具体地讲,我有一个长SED
如下命令:多行命令批处理注释
@SED -r -e "s/.../.../"^
-e "s/.../.../"^
-e "s/.../.../"^
fileName >outFileName
我想将注释添加到每个“-e”选项,如图所示在下面的实施例:
:: Option #1: At the end of the line
@SED -r -e "s/.../.../"^ // First comment
-e "s/.../.../"^ // Second comment
-e "s/.../.../"^ // Third comment
fileName >outFileName
:: Option #2: Between lines
@SED -r
@REM First comment
-e "s/.../.../"^
@REM Second comment
-e "s/.../.../"^
@REM Third comment
-e "s/.../.../"^
fileName >outFileName
有什么办法可以做到这一点?
灿* NIX版本的sed的手柄内联评论? – SomethingDark