![]() |
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 |
| extracting a line based on line number | narendra.pant | Shell Programming and Scripting | 2 | 09-20-2007 05:00 AM |
| Extracting data from text file based on configuration set in config file | suparnbector | Shell Programming and Scripting | 3 | 08-10-2007 02:25 AM |
| getting the line number by extracting a line | bishweshwar | Shell Programming and Scripting | 2 | 08-04-2007 09:46 AM |
| AWK - Extracting matched line | not4google | Shell Programming and Scripting | 9 | 11-02-2006 11:02 AM |
| Extracting data from each line | csaha | Shell Programming and Scripting | 1 | 04-26-2006 11:49 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Extracting specified line from a file using awk
Hi,
I am just trying to extract a line at a time from a file using awk and can't yet extract even the first line using the following:- awk '/(^[a-zA-Z0-9]) && (NR==1)/ {print $1}' file1 Is there an obvious silly error here? Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|