Register now and start sharing your code snippets.
Work around for "bash: /bin/rm: Argument list too long"
Shell Script (Bash) posted 2 months ago by christian
Use find instead of rm:
1 find . -name '*' | xargs rm
The command deletes all files in the current directory.
Delete messages containing a keyword in mutt
Shell Script (Bash) posted about 1 year ago by marko
Bulk operations in mutt, a console based email client, are easy. Here’s how to delete messages containing the keyword ‘Newsletter’.
1 T 2 Newsletter 3 ; 4 d 5 $T – asks which messages you want to tag and you reply with ‘Newsletter’.
; – asks which action you want to run on the tagged messages.
d – tells that the action you want is delete.
$ – synchronizes the view with the underlying persistence layer.