hey thanks for that, but no joy. I see what the command is sposed to do and that is pretty much exactly what I want. This is the output of the command (redhat 7.1)
[root@mail mail]# cat virtusertable | awk {`print $1","$2`} > virtualusertable.csv
bash: print: command not found
Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options: GNU long options:
-f progfile --file=progfile
-F fs --field-separator=fs
-v var=val --assign=var=val
-m[fr] val
-W compat --compat
-W copyleft --copyleft
-W copyright --copyright
-W dump-variables[=file] --dump-variables[=file]
-W gen-po --gen-po
-W help --help
-W lint[=fatal] --lint[=fatal]
-W lint-old --lint-old
-W non-decimal-data --non-decimal-data
-W profile[=file] --profile[=file]
-W posix --posix
-W re-interval --re-interval
-W source=program-text --source=program-text
-W traditional --traditional
-W usage --usage
-W version --version
To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.
Have I got the syntax right? I am using `print not 'print. If I use ' then the output is..
[root@mail mail]# cat virtusertable | awk {'print $1","$2'} > virtualusertable.csv
awk: cmd. line:1: print $1","$2
awk: cmd. line:1: ^ parse error
Thanks for your time.