How to remove directories that have numbers as file names in Ubuntu using command line?
Solution 1:
One possible solution:
rm -r $(seq $a $((a+3)))
(Provided you really meant what you illustrated with your code sample, ie. directories above or equal to $a
and below or equal to $a+3
, instead of what you wrote in the text, "above >$3
but below <$3+2
".