A seemingly very simple technique which is a lifesaver in checking bash scripts: instead of running the script, e.g.
./renamefiles.sh
run
bash -x ./renamefiles.sh
for a command by command report of activity in the script. Each command is preceded by a "+". Lines without a "+" are ordinary script outputs.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment