There are many ways of doing this, and most of them are better, but this is pretty.
perl -le 'print $==()=<>' file
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Count the number of lines in a file
by Abigail-II (Bishop) on Aug 15, 2002 at 11:16 UTC | |
by jmcnamara (Monsignor) on Aug 15, 2002 at 11:37 UTC | |
by Molt (Chaplain) on Aug 15, 2002 at 14:45 UTC | |
by jmcnamara (Monsignor) on Aug 15, 2002 at 15:36 UTC | |
by Abigail-II (Bishop) on Aug 15, 2002 at 14:49 UTC | |
|
Re: Count the number of lines in a file
by Anonymous Monk on Aug 16, 2002 at 02:52 UTC | |
|
Re: Count the number of lines in a file
by blakem (Monsignor) on Aug 15, 2002 at 08:23 UTC |