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

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

Re: sed 4.2.1 BUG Report


From: Davide Brini
Subject: Re: sed 4.2.1 BUG Report
Date: Sun, 23 Oct 2011 16:17:09 +0200
User-agent:

On Fri, 21 Oct 2011 18:26:57 -0700 (PDT), Newt Ralphson
<address@hidden> wrote:

> comment '#' delimited lines result in error if they contain () or <> or
> other 'parseable' sed command characters (debian 2.6.32-35 - gcc 4.3.5
> (debian 4.3.5-4))
> 
> this works :
> 
> #!/bin/sh
> #   input lines of the form (from bpmdj bpmcount):
> #   <artist> ' - ' <title> '(' <version> ').ogg' \n <bpm.dec> <cruft> \n
> #
> 
> 
> <snip>
> 
> this doesn't work:
> 
> #!/bin/sh
> #   sed script to convert dir2bpm output to .csv
> #
> 
> 
> cat "$1" | sed -n '
>     :x
> 
>     #   input lines of the form:
>     #   <artist> ' - ' <title> '(' <version> ').ogg' <bpm> <cruft>    N
> 
>     y/\n/ /
>     s/^/\"/
>     s/ - /\",\"/
>     s/[ ]*(/\",\"/
>     s/).ogg /\",/
>     s/temp.wav//
>     N
>     P
>     D
>     '

You are trying to put single quotes within single quotes, which cannot be
done.

-- 
D.



reply via email to

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