0:root@SERVER:/root # echo "something" | sed -e 's/^/\t/g'
tsomething
0:root@SERVER:/root #
AIX/ksh .. why doesn't it works? I just want to put a "tab" before every line!
|
|
POSIX shellBear in mind that since many shells store their strings internally as cstrings, if the input contains the null character (
awk
Perl
|
|||||
|
|
If your shell is bash, ksh93 or zsh, you can use shell escaping to put a literal tab in the sed command. The quoting syntax
|
|||||
|
|