Tuesday, April 23, 2024
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 2008  / 2 Years ago, tue, april 19, 2022, 2:16:26

I have files fileName_1, fileName_2 ... fileName_100000 where the fileNames are numbered sequentially. How can I delete the files of index greater than, say 100?


More From » command-line

 Answers
1

If filenames are numbered sequentially just run the following command:



rm fileName_{100..100000}

[#25203] Wednesday, April 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eeperant

Total Points: 39
Total Questions: 106
Total Answers: 117

Location: Finland
Member since Sat, Dec 5, 2020
3 Years ago
;