GURU NEEDED : break a command into several lines and comment each line

Chris Rebert clp2 at rebertia.com
Thu Jan 13 16:49:06 EST 2011


On Thu, Jan 13, 2011 at 1:18 PM, bolega <gnuist006 at gmail.com> wrote:
> Basically, I have spent a few hours experimenting and searching on the
> comp.unix.shell
>
> how to break a command with several switches into more than one line
> AND to be able to put some comment on each line.
>
> #!/bin/bash -xv
>
> command       \ # comment1
>         -sw1 \ # comment2
>         -sw2 \ # comment3
>         arguments
>
> One ought to be able to comment every single switch if desired for
> whatever reason.

This doesn't seem to have anything whatsoever to do with Python...

Regards,
Chris



More information about the Python-list mailing list