Re: script issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat,  8 Jan 2005 08:26:42 -0500 (EST)
fedora-list-request@xxxxxxxxxx wrote:

> On Friday 07 January 2005 20:39, Kam Leo wrote:
> 
> > On Fri, 7 Jan 2005 19:43:38 +0200, Chadley Wilson <chadley@xxxxxxxxxxxx> 
> wrote:
> > > On Friday 07 January 2005 19:06, Paul Howarth wrote:
> > > > Chadley Wilson wrote:
> > > > > hi guys
> > > > >
> > > > > if a line is too long in a sh script
> > > > > I need to break it in to two lines,
> > > > > there is a method that tells the shell that the two line are to read
> > > > > as one,
> > > > >
> > > > > how do you do that?
> > > >
> > > > echo This is a \
> > > >       long line.
> > > >
> > > > Note: the backslash must be the last character of the line, no spaces
> > > > or anything else after it.
> > > >
> > > > Paul.
> > >
> > > Thanks Paul
> > > You are working rather hard today for me anyway?
> > >
> > >
> > > --
> > > Chadley Wilson
> > > Redhat Certified Technician
> > > Cert Number: 603004708291270
> >
> > Why are you using this list for basic bash questions? Didn't your
> > Redhat certification course cover this subject? By the way, you can
> > just as easily use Google to find the answer.  I gave you a reference
> > to a bash scripting tutorial yesterday.  If you did not like that one
> > there are others available.  First, do some research on your own,
> > then, come to the list when you cannot find an answer.
> 
> Look I know I should be reading this stuff up, but I am really pressed for 
> time, as you know you could read 500 pages before finding what you need, that 
> takes time which I don't have. So I apologise if my questions are stupid. But 
> really I was hoping for better solutions than those I already know.
> 
> Besides if you can show why when I script the install of two rpms on one line 
> the script ignores the second even if I use the \
> 
> in fact it reads the name of the second rpm as a command and returns command 
> not found error
> 
> So I am not arguing the fact that I appear to be lazy these last few days. but 
> if you check the archives you will see that I hardly ever post. the time that 
> I ever use the list for my benefit is when I actually don't have a lot of 
> time to find out.
> 
> Once again my apologies.
> 
> 
> 
> -- 
> Chadley Wilson
> Redhat Certified Technician 
> Cert Number: 60300470

If you want to run two rpms on the same line do
rpm-one; rpm-two or in the case of extending the line
rpm-one;\
rpm-two
Note the ;. This separates on statement from the next.

-- 
Richard E Miles
Federal Way WA. USA
registered linux user 46097


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux