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