Hi ,
Please suggest me how do I use
: (colon and one space)
as a delimiter in awk
Best regards,
Vishal
Hi ,
Please suggest me how do I use
: (colon and one space)
as a delimiter in awk
Best regards,
Vishal
Try :
# space and colon
$ awk -F'[: ]' '{.........}' file
$ awk '{.........}' FS='[: ]' file
$ awk 'BEGIN{FS=":| "}{........}' file
# colon and space together
$ awk '{.........}' FS=": " file
$ awk 'BEGIN{FS=": "}{........}' file
awk -F': '
or FS = ": "
.
[: ]
matches :
and <space> as single characters.