Aug 20, 2002 1 #1 goldtop Technical User Joined Dec 29, 2004 Messages 1 Location 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 Joined Apr 25, 2001 Messages 2,218 Location US Try: awk ' { gsub(/[\t ]/,",",$0) print }' Upvote 0 Downvote
Aug 21, 2002 #3 vgersh99 Programmer Joined Jul 27, 2000 Messages 2,146 Location US tr ' ' ',' < myTextFile.txt vlad +---------------------------+ |#include<disclaimer.h> | +---------------------------+ Upvote 0 Downvote
tr ' ' ',' < myTextFile.txt vlad +---------------------------+ |#include<disclaimer.h> | +---------------------------+