是否有任何安全的方法来记录一长串命令并为读者提供不会对我的系统构成风险的注释?
假设所有步骤都是正确且有意的,假设我有以下内容:
step 1
step 2
step 3
...
step 76
step 77
- this next step needs to move files to xyz so that dependency ufh will properly resolve
step 78
step 79
...
step 203
- multi-line comment which explains something really long and should be
- manually wrapped for legibility purposes.
- Oh yeah, and it is followed by a list:
- * list item 1
- * list item 2
step 204
...
step 326
- another comment but this time I contain sudo ls / for some unholy reason
step 327
...
step 435
我想将它从上到下复制并右键单击将其粘贴到 PuTTY 会话中,以便命令按顺序执行,但不会从注释中无意执行某些内容。
根据评论和答案,我是否真的在 bash shell 中似乎值得怀疑。
echo $o
产生“-bash”