Sublime Forum

Eliminate duplicate .txt files by a specific num/char -1

#1

hello. I have several files .txt

53891.txt
53891-1.txt
83896.txt
83896-1.txt
13906.txt
13906-1.txt

I want to eliminate those that are repeated, like that files with -1. Can someone help me?

0 Likes

#2

non-ST-related.

linux/mac: $ rm *-1.txt
win: del *-1.txt

0 Likes

#3

how can I use on win this -1.txt ?? I try this witch total commander, doesn’t work :slightly_smiling:

0 Likes

#4

it’s a built-in cmd command.

0 Likes

#5

please, can you be more specific? I don’t know exactly what is built-in cmd command. Can you guide me step by step?

0 Likes

#6
  1. hold shift and right click on the directory background.


0. del *-1.txt

0 Likes

#7

thanks, works perfect !!

0 Likes