[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed bug?
From: |
Pierre Gaston |
Subject: |
Re: sed bug? |
Date: |
Sun, 19 Feb 2012 11:05:56 +0200 |
On Sat, Feb 18, 2012 at 12:02 AM, Scott Hall <address@hidden> wrote:
> I'm using your sed utility and am having a problem with handling a list of
> input files.
>
> If I include quotes around the input path (which I need if there is a
> space in the path), it results in an "Invalid Argument" error.
>
> example:
> sed -f x.sed "..\test files\*.txt"
> sed: can't read ..\test files\*.txt: Invalid argument
>
sed isn't the one doing the expansion of *.txt to a list of filenames, it
is your shell. Then when sed runs it sees a list of filenames passed as
arguement.
If you put *.txt inside quotes you tell the shell not to expand this list
and sed receives a literal *.txt that it can't interpret.
- sed bug?, Scott Hall, 2012/02/19
- Re: sed bug?,
Pierre Gaston <=
- Re: sed bug?, Bob Proulx, 2012/02/19
- Re: sed bug?, Eli Zaretskii, 2012/02/19
- Re: sed bug?, Bob Proulx, 2012/02/19
- Re: sed bug?, Eli Zaretskii, 2012/02/19
- Re: sed bug?, Bob Proulx, 2012/02/19
- Re: sed bug?, Eli Zaretskii, 2012/02/19