On Mon, Sep 23, 2002 at 04:38:21PM +0200, Spanke, Alexander wrote:
> 
> How can i count the lines of a text file and store it in a variable. But i
> should use the bash, so no perl, python script should it be.

[seyman@munshine seyman]$ linecount=`wc -l < file.txt`
[seyman@munshine seyman]$ echo $linecount
31

Emmanuel



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to