我想知道是否可以在批處理文件命令中有註釋。具體地講,我有一個長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