Re: [SLUG] sed question

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


On Fri, 10 Jun 2005, Andrew Barber wrote:

> --- Alex Harris <nccuss17@gmail.com> 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.

> There may be other characters after the =. Use od or
> xxd to view the hex output and see. Maybe it was
> created on a windows box and transfered to a Unix
> system in binary mode (via ftp with bin, or sftp).
> These will show up in cat -v as ^M.

Yep, that's it (in my case).

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
   Your pretended fear lest error might step in is like the man who
   would keep all wine out of the country lest men should be drunk.
                                                 -- Oliver Cromwell

----------------------------------------------------------------------- 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:11 EDT