abemassry / wsend

wsend: The opposite of wget

Home Page:https://wsend.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add bulk delete to uploaded files

ibrahimabdalmageed opened this issue · comments

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'