Re: [SLUG] sed question

From: Kwan Lowe (kwan@digitalhermit.com)
Date: Fri Jun 10 2005 - 13:21:34 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).

Andrew hit it on the nose, then. Someone else recently had some email issues with
similar issues.

-- 
* The Digital Hermit   http://www.digitalhermit.com
* Unix and Linux Solutions   kwan@digitalhermit.com
-----------------------------------------------------------------------
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:33 EDT