gnu@robby:~/faust2.0/voice$ sh faustus2.sh
# execute un random dans l'interval(%) `ls *ogg | wc -l`
line=$(($RANDOM%`ls *wav | wc -l`))
+ ls test.wav test2.wav test3.wav test4.wav test5.wav
+ wc -l
faustus2.sh: 8: arithmetic expression: expecting primary: "%5"
gnu@robby:~/faust2.0/voice$ cat faustus2.sh
#!/bin/bash
#SCRIPT PLAY OGG
set -xv
# execute un random dans l'interval(%) `ls (…)
Forum Programmation.shell script bash , OK sous ubuntu 7.10 mais KO sous ubuntu 8.04
19
mar.
2009
voila j'ai modifié un petit script , il se lance sans problème sous gusty mais sous hardy il me retourne une erreur incompréhensible . Quelqu'un peut m'expliquer ?







