help-gnu-utils
[Top][All Lists]
Advanced

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

Re: backtick help


From: Paul Jarc
Subject: Re: backtick help
Date: Sun, 31 Aug 2008 22:38:18 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

"Gisle Vanem" <giva@users.sourceforge.net> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]