Re: Bug in wc???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Sonntag 11 Januar 2004 17:00 schrieb Jos Vos:
> On Sun, Jan 11, 2004 at 04:55:15PM +0100, Hans Müller wrote:
> > #!/bin/sh
> > Zeilen= echo `cat /tmp/test.txt |wc -l`
> > if [ $Zeilen > 3 ]; then
> > echo "Update";
> > else
> > echo "kein Update";
> > fi
>
> Use:
>
> Zeilen=`cat /tmp/test.txt |wc -l`
>
> And then it will work.
sorry i will not work.
i get the message:
./test.sh line 2: 4: command not found
Kein Update

>
> --
> --    Jos Vos <jos@xxxxxx>
> --    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
> --    Amsterdam, The Netherlands        |     Fax: +31 20 6948204




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux