Re: text editing
On Sat, May 24, 2003 at 08:50:55AM +0300, Mohammed Sameer wrote:
> Once upon a time Tsuyoshi Takada wrote @ Sat, 24 May 2003 13:44:38 +0900
>
> >
> > Hi,
> >
> > $ wc -l 1.txt
> > returns
> > " 150 1.txt"
> >
> > I want to extract the lines count "100" as the following,
> >
> > $ wc -l 1.txt | <some sommand>
> > returns
> > 100
> >
>
> I had a stupid idea:
> cat 1.txt | wc -l
> !
Whats wrong with wc -l < 1.txt
It just gives the number with some whitespace around it.
--
René Seindal (rene@seindal.dk) http://sights.seindal.dk/
Reply to: