Awk script
|
Original Message
|
Name: Prasanna
Date: April 5, 2006 at 03:44:57 Pacific
Subject: Awk scriptOS: XPCPU/Ram: PentiumModel/Manufacturer: Intel |
Comment: I have 4 columns in a record. sometimes the 2nd & 3rd column happens to be a NULL.for those records with 2nd & 3rd column is null the $2 of AWK takes the 4th not null column. I don't want the awk to behave this way. How do I go about in this case.
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: nails
Date: April 5, 2006 at 07:45:05 Pacific
|
Reply: (edit)A null column means an undefined column. Therefore, you can't say your record has 4 columns if one of them is null. awk has a field seperator, FS, variable that you might be able to use.
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: