Re: Help extracting something from a string
  Home FAQ Contact Sign in
comp.unix.shell only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Help extracting something from a string         

Group: comp.unix.shell · Group Profile
Author: Edward Rosten
Date: Nov 27, 2007 13:38

On Nov 20, 12:10 pm, bone gmail.com> wrote:
> On Nov 19, 5:06 pm, Edward Rosten gmail.com> wrote:
> $ echo ksdjfglsdfg"ddfd-dfdf-dfdf-dfdf-dfdf-dfdfd-dfdf.pdf"sdgsg| sed
> -ne's/.*\(".*-.*-.*-.*-.*-.*\.pdf"\).*/\1/;tp;d;:p;p'

To see why this does not work, type:

echo ksdjfglsdfg"ddfd-dfdf-dfdf-dfdf-dfdf-dfdfd-dfdf.pdf"sdgsg

The shell is eating your "s

-Ed
no comments
diggit! del.icio.us! reddit!