The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
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 06-14-2005
yankee428 yankee428 is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 29
Find replace within a file?

I build several files by using the cut command to grab select fields(columns) from a really bid csv file. Each file is one column of data. I then put them together using paste command. Here is the code built in tcsh:

cut -d , -f 1 some.csv > 1.csv
cut -d , -f 10 some.csv > 10.csv
paste 1.csv 10.csv > combined
rm 1.csv
rm 10.csv

Here is my Q? This leaves me with a data file, "combined" that is tab delimited (about 6 fields, no header row). I want it to be be a csv, how can i find/replace tab-stops with commas within the file?