Looking around I didn’t see exactly what I was looking for. Some similar stuff, but for some reason what I tried so far hasn’t worked.
My main goals:
- run script in my current directory
- open the picture to see what it is
- rename the picture i just viewed
- repeat the process without running the script again
These were the sources I attempted to follow:
Bash Shell Loop Over Set of Files
Bash loop through directory and rename every file
How to do something to every file in a directory using bash?
==================================================================================
echo "Rename pictures. Path"
read path
for f in $path
do
eog $path
echo "new name"
read newname
mv $path $newname
cat $f
done
You might want to try something like this:
If you name the script, say,
rename.sh, you can callto review all files with extention ‘gif’.