/bin/sh -c 'echo $C3PDIR | cut -d/ -f3,4 | sed s:/::'Quote:>-=-=-=-=-=-
>-=-=-=-=-=-
>Can someone help me quote the following correclty?
>/bin/sh -c 'echo $C3PDIR | cut -d/ -f3,4 | sed 's/\///''
Since the sed parameter doesn't contain any special characters, no quoting
is needed there. Notice also that I changed the sed delimiter character to
avoid having to escape the slash -- keep this in your repertoire whenever
you're using sed to manipulate pathnames.
--
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.