Quote:
Originally Posted by Mayuri P R
 Thanks alot. Its working fine with the current scenario...
I have one more query. If we know exactly which row to retrieve then this will work fine. Suppose the given dat file contains thousands of records, I just want to retrieve all the rows whose salary is greater tha 15000. How can v acheive that ? In other words can v use expressions(logical,arthmetic, regular...) to retireve the particular rows along with the column name..
|
yes you can
Code:
awk 'BEGIN{NR==1{print}$3>15000{print}' filename