Pergunta

I have 200 files on a linux machine, each one's name is 100, 101, 102, 103 etc... I'd like to delete 100-150, how can it be done?

Foi útil?

Solução

I have 200 files, each one's name is 100, 101, 102, 103 etc... I'd like to delete 100-150

You can say:

rm {100..150}

or

rm -f {100..150}     # -f would ignore nonexistent files, never prompt

Outras dicas

You can delete those by using range: rm -f {100..150}

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top