[Ilugc] why this is not working in Solaris
- From: gopal@xxxxxxxxxxxxxxxxx (Gopalarathnam Venkatesan)
- Date: Thu Aug 17 12:53:37 2006
Ashok Antony wrote:
Hi all
I am using the folllowing command to replace \n as \t
sed 's/\n/\t/' <file_name>
but, the above command is not replacing the newline with tab, where as it
replaces with 't'.
I have tested this in
<antony@chico:>uname -a
SunOS chico 5.9 Generic_118558-09 sun4u sparc SUNW,Ultra-80
Use "^V^I", some versions of sed don't understand C-style escape sequences.
So, your command would be:
sed 's/^V<Return>/^V^I/' file
--
Gopalarathnam Venkatesan
http://gopalarathnam.com/
Other related posts: