![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Read a file and search a value in another file create third file using AWK | King Kalyan | Shell Programming and Scripting | 11 | 06-19-2009 01:05 AM |
| Need help with awk - how to read a content of a file from every file from file list | tanit | Shell Programming and Scripting | 7 | 03-10-2009 05:19 AM |
| file size comparision local file and remote file | dba.admin2008 | Shell Programming and Scripting | 4 | 11-13-2008 05:57 PM |
| Reading a file and writing the file name to a param file. | thebeginer | UNIX for Advanced & Expert Users | 1 | 10-05-2007 05:38 PM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 05:25 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Nth of a file - bis
I've seen that it has been suggested to use awk to show e.g. the 50th line in a file
awk 'NR==50{print;exit}' file What about if instead of a number I try to use a variable? e.g. COUNT awk 'NR==$COUNT{print;exit}' file awk 'NR==${COUNT}{print;exit}' file I can't make it work, Thanks, |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|