[mdlug] GNU sed weirdness

Raymond McLaughlin driveray at ameritech.net
Sun Jan 24 01:39:38 EST 2010


Jeff Hanson wrote:
> On Sun, Jan 24, 2010 at 1:08 AM, Raymond McLaughlin
> <driveray at ameritech.net> wrote:
>> Looking again, it might not be much help. Sorry.
>>
> 
> Thanks for the tip but I thought of that and came to the same conclusion.

Actually using % instead of / might make the delimiters stand out a bit
better, and would work as well.

I'm still looking at your command string. I'm not sure if or how word
wrap is messing with it.

sed -n 's/\(.*\)\\\(.*\)\.idx/'"\"$compress_exe\" $compress_opts
\"$target_dir\\"'\2'".$compress_ext"'\" \"\1\\2.*\"/p' $1


The first and second double quotes are in the construct: "\"

Are you quoting the backslash, or backslash escaping the second double
quote? if the latter, where is the "mate" to the first double quote?



More information about the mdlug mailing list