1
vote
1answer
23 views

Is is possible to insert comments into a long command with escaped newlines?

I have a long command line, longer than but similar to the example below. I would like to add comments to individual argument in the sense of what is shown here: ssh -N \ -R :10000:10.0.0.1:80 \ ...
8
votes
2answers
3k views

Comments in a multi-line bash command

This single-command BASH script file is difficult to understand, so I want to write a comment for each of the actions: grep -R "%" values* \ | sed -e "s/%/\n%/" \ | grep "%" \ | grep -v " % " \ | ...