On Thu, 20 Dec 2001, Alexandru Balan wrote:
> partea proasta cu linia de comanda ar fi alta...
> sa zicem ca vrei pe tasta [volUP] sa fie volum ceva mai tare
> mixer vol + nu exista.. exista numa' mixer vol 100:100 80:80 , etc
> so.. ar trebui la chestia asta sa-si faca un scripteanu care cand apasa tasta
> sa-i incrementeze $x si $y cu 1 si sa execute mixer $x:$y
Uite aici o chestie care sa rezolve problema cu incrementarea,
decrementarea. Asta-i doar un exemplu.
==cut==
#!/bin/sh
mytmp="`head -c 18 /dev/urandom|mmencode|sed 's/[^a-zA-Z0-9.]//g'`"
x=100
if [ $x = "100" ]; then
echo volumu-i la minim, baa
exit 1
fi
mixer vol $x:$x
cat "$0" | sed s/x=100/x=$(($x-5))/g > "/tmp/$mytmp" && \
mv "/tmp/$mytmp" "$0" && \
chmod 755 "$0"
==cut==
-- sekure at gmx dot co dot uk
CCJAM
.include 'send pgp key' in the subject to get my pgp key
"The photon somehow knows..."
-- http://www.qubit.org/intros/comp/comp.html
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.