Show commands without executing them

后端 未结 4 685
太阳男子
太阳男子 2020-12-08 19:55

I often interactively loop over e.g. my files and want to perform a specific operation on all of them, let\'s say I\'d like to rename all files:

for file in          


        
4条回答
  •  感情败类
    2020-12-08 20:19

    Actually you can do this in a script

    add:

    set -x 
    set -n
    

    in the beginning of the script

提交回复
热议问题