[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed
From: |
Eli Zaretskii |
Subject: |
Re: sed |
Date: |
Tue, 28 Aug 2001 13:46:02 +0300 (IDT) |
On 28 Aug 2001, vivek katakam wrote:
> i am trying to use sed to replace a tab character in one of my data files
> with , character.
> sed s//t/,/ nreceived
You meant \t. But it isn't supported by Sed.
> nreceived file contains /t for tab as separator. i want to replace with ,
> . but, it is giving the error
> sed: -e expression #1, char 6: Unknown option to 's'
>
> I want to know how to define tab character by using sed command.
Use a literal TAB:
sed "s/ /,/" nreceived
The whitespace after the first slash was produced by pressing the TAB
key. This is also the reason you need to quote the Sed script.
- sed, vivek katakam, 2001/08/28
- Re: sed,
Eli Zaretskii <=
- Re: sed, Soenke Petersen, 2001/08/29