Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add bulk delete to uploaded files #20

Open
ibrahimabdalmageed opened this issue Nov 28, 2021 · 1 comment
Open

add bulk delete to uploaded files #20

ibrahimabdalmageed opened this issue Nov 28, 2021 · 1 comment

Comments

@ibrahimabdalmageed
Copy link

No description provided.

@abemassry
Copy link
Owner

abemassry commented Feb 22, 2022

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants