I have files like
file.log.100.gz. I want to have a loop from
100 to delete these files. How can this be done?
I tried this command in Linux:
for i in $(seq 1 100); do rm -rf file.log.$i.gz
done is missing.
for i in $(seq 1 100); do rm -f file.log.$i.gz; done
-r because recursion is useless when the argument is a file.
This loop-less syntax should also work in
bash. It feeds all the names to a single