Search Results

Search: Posts Made By: e.zen
3,154
Posted By e.zen
hi, an example: you can pass a parameter...
hi,
an example: you can pass a parameter (folder) to the script.


DIR=`ls $1`
index=1
cd $1
for file in $DIR
do
new_file="00$index.jpg"
mv $file $new_file
index=$(($index+1))
done

...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 10:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy