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 -->
  #1 (permalink)  
Old 11-17-2008
Bandit390 Bandit390 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 19
Help with sed/substitution!

I have file.txt


Code:
    1              4              7              9              3

I want to replace the tabs with a space, but my code doesn't work.


Code:
cat file.txt | sed 's/"\t"/ /g' > t.txt

But file is still the same. Numbers seperated by tabs instead of spaces.

Help?