![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| bc and wc utilities??? | skyineyes | UNIX for Dummies Questions & Answers | 6 | 05-29-2008 12:46 PM |
| Awk Utilities | jyo123.jyothi | Shell Programming and Scripting | 10 | 05-08-2008 05:45 AM |
| version of the utilities | abey | HP-UX | 3 | 02-10-2006 06:39 AM |
| compression utilities | jalburger | UNIX for Dummies Questions & Answers | 6 | 07-08-2004 11:06 AM |
| Zmodem Utilities | SmartJuniorUnix | UNIX for Dummies Questions & Answers | 1 | 06-12-2001 10:13 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 ... |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|