no colourful need for lls anymore
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
e2742c3b6e
commit
4c379f6e15
1 changed files with 0 additions and 25 deletions
25
lls
25
lls
|
@ -1,25 +0,0 @@
|
|||
#!/bin/sh
|
||||
tmp=/tmp/.lls.$$
|
||||
ls -l $* | tee $tmp
|
||||
sum=0
|
||||
anz=0
|
||||
for i in $(cut $tmp -b 33-41); do
|
||||
i=${i##*[^0-9,´ ´]*}
|
||||
if [ i ]; then
|
||||
sum=$[$sum+$i]
|
||||
anz=$[$anz+1]
|
||||
fi
|
||||
done
|
||||
echo -n "$anz Dateien, "
|
||||
if [ $sum -ge 1000000 ]; then
|
||||
echo -n $[$sum/1000000]
|
||||
printf "%.3d," $[($sum % 1000000)/1000]
|
||||
printf "%.3d" $[$sum % 1000]
|
||||
elif [ $sum -ge 1000 ]; then
|
||||
echo -n $[$sum/1000]
|
||||
printf "%.3d" $[$sum % 1000]
|
||||
else
|
||||
echo -n $sum
|
||||
fi
|
||||
echo " Bytes"
|
||||
rm $tmp
|
Loading…
Reference in a new issue