[PLUG] tabs in sed
Sandy Herring
sandy at herring.org
Tue Jul 16 20:44:08 UTC 2002
Michael,
Most versions of sed don't parse `\t' to mean <tab>. To enter an actual tab
character, you need to escape it with ^v (Ctrl-v). e.g.
sed 's/[<Tab>]//g' foo.txt > bar.txt
...where <Tab> signifies ^v followed by a keyboard tab.
Sandy
On Tue, 16 Jul 2002, Michael Montagne wrote:
> I'm trying to get rid if multiple tabs using sed. How do I specify a
> TAB character at the command line? \t doesn't work and pressing the TAB
> key doesn't work either.
>
> thanks.
> --
> Michael Montagne [montagne at boora.com] 503.226.1575
--
Sandy Herring, RHCE o sandy at herring.org
Peck of Pickled Pisces __ o http://herring.org/
UNIX or Web authoring questions? |\/ o\ o http://herring.org/finger.html
=>http://herring.org/techie.html |/\__/ http://herring.org/pub-key.asc
*sh, Perl, C, VBA, PICK Assembler, Data/Basic, PROC & profanity spoken here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20020716/370d4138/attachment.asc>
More information about the PLUG
mailing list