Spanke, Alexander wrote:
> Hi again,
> 
> 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.
> 
> Now i use 
>       wc -l < file.txt | read dummy
> 
> But it doesn't work :(
> 
> Any ideas ?
> 
> Regards / thnx
> Alex
> ----------------------------------------------
> [EMAIL PROTECTED] 
> 
> 
> 

LINEAS=`wc -l file.txt`
echo $LINEAS

HTH


-- 
Francisco Neira B.
Administrador de Red
Defensoria del Pueblo
Lima, Peru, -05:00 UTC




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

Reply via email to