Re: script issue

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

 



On Friday 07 January 2005 1:00 pm, Chadley Wilson wrote:
> 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?

Use the backslash, like this:

-----------------------cut here -----------------------
#! /bin/sh
echo "This is \
a line"

---------------------cut here ---------------------
Jorge


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

  Powered by Linux