abemassry / wsend

wsend: The opposite of wget
https://wsend.net
GNU General Public License v3.0
79 stars 8 forks source link

add bulk delete to uploaded files #20

Open ibrahimabdalmageed opened 2 years ago

abemassry commented 2 years ago

I would have gotten back to you sooner but I'm not sure what's going on with my github notifications.

What were you thinking for this feature? like accepting a list of files from stdin, or a command line option of some sort, right now you can do this:

wsend -lsu | grep 'some-type-of-discriminator-in-filename' | while read line; do wsend -x $line; done

this will go line by line and remove the files that you've grepped for the grep will work on the links and wsend -lsu will return all of your files in link format so if your files are named something like:

file001.txt
file002.txt
file003.txt

etc. you can do something like this for the grep: grep file0 or grep -E 'file[0-9]+\.txt' or grep -P 'file\d+\.txt'