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

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

sed 4.2.1 BUG Report


From: Newt Ralphson
Subject: sed 4.2.1 BUG Report
Date: Fri, 21 Oct 2011 18:26:57 -0700 (PDT)

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
    '

rose flame for [at] ya hu dot com


reply via email to

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