Re: backtick help

[email protected] (Paul Jarc)
Newsgroups gmane.comp.gnu.utils
Organization What did you have in mind? A short, blunt, human pyramid?
Message-ID <[email protected]>
"Gisle Vanem" <[email protected]> wrote:
> But I really need an output w/o the quotes. So I tried:
>  VERSION = `grep WATTCP_VER_STRING inc/tcp.h | cut -d' ' -f4 | sed -e /\\"//`

You missed the "s" in the sed command.  You'll also need a "g" at the
end of it:
VERSION = `grep WATTCP_VER_STRING inc/tcp.h | cut -d' ' -f4 | sed -e s/\\"//g`

This might be easier to read:

VERSION = `grep WATTCP_VER_STRING inc/tcp.h | cut -d' ' -f4 | tr -d '"'`


paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.