i have a file which has few columns.From those columns i need to check the value of column 9 if it is 1 or not.If it is 1 then only i need to print column 4,5,7,9.
Sample input.
Column 1,Column 2,Column 3,Column 4,Column 5,Column 5,Column 6,Column 7,column 8,Column 9,Column 10.
Heading 1
value 1h,Value 2h,,value 4h,value 5h,Value 6h,Value 7h,Value 8h,1,value 10h
Heading 2
value 1b,Value 2b,,value 4b,value 5b,Value 6b,Value 7b,Value 8b,0,value 10b
Heading 3
value 1c,Value 2c,,value 4c,value 5c,Value 6c,Value 7c,Value 8c,1,value 10c
Output
Column 4,Column 5,Column 7,Column 9
value 4h,value 5h,Value 7h,1
value 4c,value 5c,Value 7c,1
In the above input heading 1,heading 2 and heading 3 are various headings in the file.
Also first column header start from line 3 in the file.