0
I have the following script
#!/bin/bash
for file in *.jpg;
do
convert $file -resize 1920x1080! -blur 0x8 alterado$file;
echo "A Processar o ficheiro $file"
done
I want to do an echo with
Processor the foo file ( 1 of 100)
How do I get the index and total number of occurrences? I could do another script to list the directory files and count the result, but I would like to know how to do this with loop for ... in
@lazyFox, I didn’t quite understand what you want. Could clarify better?
– cantoni