in sed try escaping to get the quote interpreted literally. To escape you
need to precede the character you want to escape with \ (e.g. \")

On Sat, 12 Feb 2000 11:44:54 +0000 Richard Adams <[EMAIL PROTECTED]>
writes:
>Hello all.
>
>Now i have a question for the group.
>
>I want to insert a " as the first char of a line and add another at
>the end of a line. The command is ass follows.
>
>ls -al / | awk '{ print $9 }'
>
>That shows the root filesystem with one directory per line as 
>follows.
>
>bin
>boot
>burner
>cdrom
>dev
>etc
>floppy 
>
>Now what i want is
>
>"bin"
>"boot"
>
>I have tried ed, sed and awk, as soon as i try to define a " it gets
>interpreted as part of the shell command and therfore causes bash to
>complane.
>
>Now i know it can be done and i am probably overlooking the most
>simple of things, it just has me stumped and i'm up the creek without
>a paddle at the minute.
>
>Who can solve this one.??
>
>-- 
>Regards Richard
>[EMAIL PROTECTED]
>http://people.zeelandnet.nl/pa3gcu/
>
>-
>To unsubscribe from this list: send the line "unsubscribe 
>linux-newbie" in
>the body of a message to [EMAIL PROTECTED]
>Please read the FAQ at http://www.linux-learn.org/faqs

-----------------
R. Haehnel

________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to