Re: Outputting tabs with sed
In message <[🔎] 87zpqt9184.fsf@marvin.bln.de>, writes:
>"Oliver Elphick" <olly@lfix.co.uk> writes:
>
>> In message <[🔎] Pine.LNX.3.96.970806230711.374B-100000@localhost>, writes:
>> >
>> > How can I output tabs with sed?
>> >
>> > I need something like: `s/<insert tab here>/\t'
>>
>> In theory, sed -e 's/<insert tab here>/ /'
>> ^
>> |
>> tab char
>>
>> should work, but it doesn't. I think that bash gets in the way when you
>> do it from the command line.
>
>Remember to quote the tab pressing Ctrl-V prior while inserting it.
>Maybe this the reason for the sed command not working in the command
>line.
>
Yes, that works. I hadn't known that bash supported ctrl-v as an
escape character.
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://lfix.co.uk/oliver
Make it idiot-proof, and someone will breed a better idiot.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . Trouble?
e-mail to templin@bucknell.edu .
Reply to: