![]() |
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 |
| How to print largest and smallest number. | amp10388 | UNIX for Dummies Questions & Answers | 2 | 05-07-2008 10:28 AM |
| How print number | bisla.yogender | Shell Programming and Scripting | 4 | 04-28-2008 06:51 AM |
| print or display certain number of file | jerardfjay | Shell Programming and Scripting | 2 | 04-05-2008 11:12 AM |
| grouping of objects and print their number | cdfd123 | Shell Programming and Scripting | 3 | 10-04-2007 01:49 AM |
| to print number one less than actual number | cdfd123 | Shell Programming and Scripting | 4 | 09-06-2007 06:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to print number of lines with awk ?
Can some body tell me how to print number of line from a particular file, with sed. ?
Input file format AAAA BBBB CCCC SDFFF DDDD DDDD Command to print line 2 and 3 ? BBBB CCCC And also please tell me how to assign column sum to variable. I user the following command it only give the sum of the column to screen. awk '{ x += $5 } END { print x }' file_name How to assign the x to variable to use in later? Thanking you, Regards, Mahesh Fernando |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|