#!/bin/bash cd xxxx i=1 while [ $i -lt 180 ]; do ((i=i+1)) n=$i if [ $i -lt 10 ] then n="0"$n fi if [ $i -lt 100 ] then n="0"$n fi cp 000.jpg $n".jpg" done
Ova poruka je od: http://www.linux.hr/newbb/viewtopic.php?forum=8&topic_id=2171&post_id=13538