Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Nov 2008 12:33:22 -0500
From:      Sahil Tandon <sahil@tandon.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: shell scripting problems
Message-ID:  <20081129173322.GB43599@shepherd>
In-Reply-To: <ade45ae90811282231i15488915r773367ba75795b4c@mail.gmail.com>
References:  <ade45ae90811282058k8215023r80e497fa5d857c40@mail.gmail.com> <20081129060801.GA41353@shepherd> <ade45ae90811282231i15488915r773367ba75795b4c@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Tim Judd <tajudd@gmail.com> wrote:

> I'm sure it's faulty
> 
> Which is why I'm asking for help
> 
> My regexes (in it's various forms) produce the output similar to:
>   xorg-fonts-75dpi
>   xorg-fonts
>   xorg-fonts-100dpi
>   ...
>   ...
>   ...
> 
> and I'm wanting my regex to return the 2nd value, in this example, in
> this list.

In your initial message, you wished to extract the first value; now it
is the second?

> The problem is the shell is taking the end anchor $ as the start of a
> variable, and no matter how I escape it, it seems to never work.
> 
> I'm sorry for not explaining properly.  Maybe the above would help.

It does not.  Explain exactly what you are trying to do and you will
receive more exact troubleshooting advice.  And please stop
top-posting.

-- 
Sahil Tandon <sahil@tandon.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081129173322.GB43599>