Aug 20, 2002 1 #1 goldtop Technical User Dec 29, 2004 1 US Hi I have space delimited file I would like to turn into a CSV. Basically, I want to replace the spaces with commas. Can awk do this for me?
Hi I have space delimited file I would like to turn into a CSV. Basically, I want to replace the spaces with commas. Can awk do this for me?
Aug 20, 2002 1 #2 marsd IS-IT--Management Apr 25, 2001 2,218 US Try: awk ' { gsub(/[\t ]/,",",$0) print }' Upvote 0 Downvote
Aug 21, 2002 #3 vgersh99 Programmer Jul 27, 2000 2,146 US tr ' ' ',' < myTextFile.txt vlad +---------------------------+ |#include<disclaimer.h> | +---------------------------+ Upvote 0 Downvote
tr ' ' ',' < myTextFile.txt vlad +---------------------------+ |#include<disclaimer.h> | +---------------------------+