quentinsf / IMAPdedup

IMAP message de-duplicator
https://quentinsf.com/software/imapdedup
GNU General Public License v2.0
323 stars 57 forks source link

Using sed to quote each line for processing with xargs #75

Closed sschwetz closed 1 year ago

sschwetz commented 1 year ago

If you are using an operating system with xargs you can use sed to automatically quote each line of your input by piping it through sed. For example:

cat folders.txt | sed 's/^\(.*\)$/"\1"/' | xargs ./imapdedup.py -s imap.server -w supersecretpasword -u imapusername -x -v -S

I thought that you might like to add this to examples in your readme.md

Thanks for writing this, it is a godsend :)

quentinsf commented 1 year ago

Thanks Stephen! I've updated the README.

All the best, Quentin