Article View: comp.unix.shell
Article #4085GURU NEEDED : break a command into several lines and comment each line
From: bolega
Date: Thu, 13 Jan 2011 21:18
Date: Thu, 13 Jan 2011 21:18
17 lines
1862 bytes
1862 bytes
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.
Bolega
Technical Details
Message-ID:
<bfd24856-94a9-4b46-b0b7-8c142f5b87f5@z5g2000yqb.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!z5g2000yqb.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1012a6,20180ee9ccee5478,start
X-Google-NewGroupId: yes
X-Google-Thread: 103b8b,20180ee9ccee5478,start
X-Google-NewGroupId: yes
X-Google-Thread: 10dd18,20180ee9ccee5478,start
X-Google-NewGroupId: yes
X-Google-Attributes: gid9d2148d7bf,gid39ae015015,gidc8df1ae2c2,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!z5g2000yqb.googlegroups.com!not-for-mail
From: bolega <gnuist006@gmail.com>
Newsgroups: comp.unix.shell,gnu.emacs.help,comp.lang.python
Subject: GURU NEEDED : break a command into several lines and comment each line
Date: Thu, 13 Jan 2011 13:18:31 -0800 (PST)
Organization: http://groups.google.com
Lines: 19
Message-ID: <bfd24856-94a9-4b46-b0b7-8c142f5b87f5@z5g2000yqb.googlegroups.com>
NNTP-Posting-Host: 75.28.130.234
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1294953511 13480 127.0.0.1 (13 Jan 2011 21:18:31 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 13 Jan 2011 21:18:31 +0000 (UTC)
Cc: gnuist006@gmail.com
Complaints-To: groups-abuse@google.com
Injection-Info: z5g2000yqb.googlegroups.com; posting-host=75.28.130.234; posting-account=REkl4woAAABFXaU7nL79XtGpnmNCQ415
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; {83B3ACED-AC9F-2058-FD69-DBCDCD722B97}; (R1 1.5)),gzip(gfe)