Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » Bash Programming sh DataCapture

Bash Programming sh DataCapture

#!/bin/bash
cd /home/sumenep/master/0328SumenepTobys/DataCapture/;
jumfile=`ls | wc -l`;
dataref=1;

echo “$jumfile”
if [ $jumfile -gt $dataref ]
then
echo “Nilai A > Nilai B”
else
echo “Nilai A == Nilai B”
fi

Filed under: 7. Operating System

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>