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 echo with
The processor the xpto file (1 of 100)
How can 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 I can do this with the for loop in ...