![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| bc and wc utilities??? | skyineyes | UNIX for Dummies Questions & Answers | 6 | 05-29-2008 09:46 AM |
| Awk Utilities | jyo123.jyothi | Shell Programming and Scripting | 10 | 05-08-2008 02:45 AM |
| version of the utilities | abey | HP-UX | 3 | 02-10-2006 02:39 AM |
| compression utilities | jalburger | UNIX for Dummies Questions & Answers | 6 | 07-08-2004 08:06 AM |
| Zmodem Utilities | SmartJuniorUnix | UNIX for Dummies Questions & Answers | 1 | 06-12-2001 07:13 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
My input file is like this 1 11110001 1.1.1.1.1 2 12222212 2.3.44.5.6 3 22223333 1.3.2.4.1.55 Now i need the 2nd column value get printed I tried with the following command awk 'NR==1 {print $2}' input this works fine for only 1st row.I need to change always NR assigned value to get printed all the 2nd column values so i tried like this but i m not getting for( i=1;i<=3;i++) do Index=`awk 'NR==$i print $2}' input` echo $Index But i am not getting any value printed Please anyone help me in this ... |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|