The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-30-2007
zedex zedex is offline
Registered User
  
 

Join Date: Feb 2007
Location: india,mumbai
Posts: 138
help in replacing ??

hi all

i have input file like this abc.txt
Code:
filename.out:
<TAB>ABC<TAB>9
<TAB>AKC<TAB>1
filename1.out:
<TAB>XYZ<TAB>1
<TAB>XYN<TAB>4
and i am trying to replace \n\t with \t so that output will be like this:
Code:
filename.out:<TAB>ABC<TAB>9<TAB>AKC<TAB>1
filename1.out:<TAB>XYZ<TAB>1<TAB>AYN<TAB>4<TAB>
i am using
perl -pi -e 's/\n\t/\t' abc.txt

its not working but when i do it from vim it works is ther any other command to do the same task