I have a file which is generated daily and each field of the file is separated with a comma. Using awk, how can I print the values of each field, but insert spaces in between the fields? Below is a sample of one line of the file.
test_job,12/16/2002,00:02,12/16/2002,00:04,SU
Using the following command, I can extract the data from the fields, however they appear right next to eachother without any spaces. I would like to have the data separated into columns.
cat report.1216 | awk -F, '{print $1 $2 $3}'
Any help would be greatly appreciated.
test_job,12/16/2002,00:02,12/16/2002,00:04,SU
Using the following command, I can extract the data from the fields, however they appear right next to eachother without any spaces. I would like to have the data separated into columns.
cat report.1216 | awk -F, '{print $1 $2 $3}'
Any help would be greatly appreciated.