The UNIX and Linux Forums  


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 -->
  #5 (permalink)  
Old 08-31-2007
zedex zedex is offline
Registered User
  
 

Join Date: Feb 2007
Location: india,mumbai
Posts: 139
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