Re: [SLUG] sed question

From: Eben King (eben1@tampabay.rr.com)
Date: Fri Jun 10 2005 - 16:44:10 EDT


On Fri, 10 Jun 2005, Kwan Lowe wrote:

> > How do I have sed remove the equal sign at the END of a line?
> >
> > I've tried sed 's/=$//' and the equal signs are still there.
>
> sed -e 's/=$//'
>
> (need the -e)

Sure?

[eben@pc eben]$ cat testfile
this
is=
a=
test
file

[eben@pc eben]$ sed -e 's/=$//' < testfile
this
is=
a=
test
file

,--
| -e script
|
| --expression=script
| Add the commands in script to the set of commands to be run
| while processing the input.
'--

Might it be an encoding issue? I've seen "=" at EOL, apparently meaning
"wrap text to window width if possible, regardless of LFs".

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Ben Franklin

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:04:01 EDT