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

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

Re: sed bug?


From: Paul Jarc
Subject: Re: sed bug?
Date: Mon, 13 May 2002 12:31:06 -0400
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu)

"Barrett, Michael [NCSUS]" <address@hidden> wrote:
> I attempt commands such as:
>       sed s/  +/,/g < exp.dat
>
> and receive error:
>       sed: -e expression #1, char 2: Unterminated `s' command

The shell splits the command line into separate arguments according to
whitespace.  Use quotes to protect this whitespace from splitting:
sed 's/  +/,/g' < exp.dat


paul



reply via email to

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