![]() |
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 |
| Number of lines in a file (perl script) | jisha | Shell Programming and Scripting | 5 | 05-20-2008 07:11 AM |
| total number of lines in a file | Raynon | Shell Programming and Scripting | 9 | 10-04-2007 09:13 AM |
| cut a number of lines out of a file | networkfre@k | Shell Programming and Scripting | 1 | 12-09-2005 01:46 AM |
| Count number of lines in Binary file | vanand420 | Shell Programming and Scripting | 3 | 09-05-2005 01:07 AM |
| Need ls to show number of lines in each file | GMMike | UNIX for Dummies Questions & Answers | 1 | 11-19-2004 05:53 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to find number of lines in a file
Hi
How do I find number of lines of a file? Below commands returned 0. But, the file is showing 20 lines when I open it in editplus tool. Each line contains 601 columns. Please advise I want to incorporate some word at the begining of each of those 20 lines -Somesh $ wc -l < ./somesh_test 0 $ cat ./somesh_test |wc -l 0 $ ls -ltr somesh_test -rw-r--r-- 1 edwapps edw 11419 Dec 19 16:07 somesh_test $ file somesh_test somesh_test: ascii text |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|