shell-script-pt
[Top][All Lists]
Advanced

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

problemas com o IF


From: enkhrypthor
Subject: problemas com o IF
Date: Fri, 13 May 2005 13:56:44 -0000
User-agent: eGroups-EW/0.82

sou meio que novo em shel lscript e gostaria de saber onde aki esta o
erro:
#!/bin/sh
SIZE=`du -cs /home/iso/x.iso | cut -f1 `
if [ $SIZE -le "664736" ]; then
        echo -e "maior";
fi

no caso, eu soh quero que se o arquivo x.iso for menor ou igual a
650mb (664736) ele exiba maior

em c eu sei fazer isso tranquilo, mas  em shell? como eu faria?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]