baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
Re: [BL] Simple File Manager (was: DOS & Shell Scripting Guide)
- From: 3aoo-cvfd AT dea.spamcon.org
- To: baslinux AT lists.ibiblio.org
- Subject: Re: [BL] Simple File Manager (was: DOS & Shell Scripting Guide)
- Date: Sat, 03 Feb 2007 19:16:27 +1300
> It now supresses output (unless the p parameter
> is used). So the script should look like this:
> --------------------------------------------------
> clear
> num=1
> set "/" "/bin" "/dev" "/etc" "/home" "/lib" "/proc" "/root" "/sbin" "/usr"
> "/var" ".." `/bin/ls -F`
> for file in "$@" ; do
> busybox.bl3 printf "%-20s" "[${num}] $file"
> [ `dc $num 4 mod p` = 0 ] && echo
> num=`expr $num + 1`
> done
> -------------------------------------------------
Oops, I left in busybox.bl3 (used for testing).
The last 5 lines should actually look like this:
---------------------------------
for file in "$@" ; do
printf "%-20s" "[${num}] $file"
[ `dc $num 4 mod p` = 0 ] && echo
num=`expr $num + 1`
done
---------------------------------
Cheers,
Steven
-
Re: [BL] Simple File Manager (was: DOS & Shell Scripting Guide),
3aoo-cvfd, 02/03/2007
-
Re: [BL] Simple File Manager (was: DOS & Shell Scripting Guide),
3aoo-cvfd, 02/03/2007
- Re: [BL] Simple File Manager (was: DOS & Shell Scripting Guide), 3aoo-cvfd, 02/03/2007
-
Re: [BL] Simple File Manager (was: DOS & Shell Scripting Guide),
3aoo-cvfd, 02/03/2007
Archive powered by MHonArc 2.6.24.