![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Gentoo Gentoo Linux is a versatile and fast, completely free Linux distribution geared towards developers and network professionals. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SFTP in batch Mode | ilok | AIX | 1 | 08-28-2007 02:25 AM |
| Sftp in Batch Mode | sivaemn | UNIX for Advanced & Expert Users | 2 | 07-01-2007 07:52 AM |
| SSH in batch mode and File-Handles in a loop | DaveCutler | Shell Programming and Scripting | 3 | 04-03-2007 07:39 AM |
| su command in batch mode | Rajesh Gohad | Shell Programming and Scripting | 3 | 01-26-2007 12:54 AM |
| SFTP in batch mode | mlim1111 | Shell Programming and Scripting | 5 | 01-23-2006 04:03 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Your output has 2 sections beginning with the word top and we want to print the second one.
After we met the second top i has the value 2. i==2 is a condition here for awk, if it's true awk print the record per default so awk begins to print after we've reach the second top. i==2 is similar to {if i == 2 {print $0}} Have a read of an awk tutorial, you can find some links here: Unix Tutorials/Programming Tutorials/Shell Scripting Tutorials Hope this helps. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|