------------------------------------------------------------------------ looping ------------------------------------------------------------------------ In increasing sophistication and clarity: for n in 1 2 3 4 5 6 7 8 9 10 do rm file$n done for n in {1..10} do rm file$n done for n in $(seq 10) do rm file$n done for ((n=1; n<=10; n++)) do rm file$n done Use seq for floating point $ seq 1 0.4 2 1 1.4 1.8