bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to replace tab by '\t' (literally) with tr?


From: Peng Yu
Subject: how to replace tab by '\t' (literally) with tr?
Date: Mon, 28 Dec 2009 15:21:54 -0600

I have the following file head.txt. I'm wondering what the correct way
is to change the tab to a backslash and the character 't'.

$ tr "\t" "\\t" <head.txt
                        a       a       b       c               
$ cat head.txt
                        a       a       b       c




reply via email to

[Prev in Thread] Current Thread [Next in Thread]