View Single Post
Posts: 99 | Thanked: 65 times | Joined on Jan 2008 @ Finland
#3
Backticks are obsolete, and problematic when nested. Modern Bourne shells, BusyBox included, undestand $()-notation.

Code:
for i in $(seq $n); do mpl mp3 $i;done
If $n is very large, then while-loop may be needed to avoid exceeding command line length limitation.

Code:
i=1
while test $i -le 100000; do
	mpl mp3 $i
	i=$(( $i + 1 ))
done