Guest User

Untitled

a guest
Sep 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #!/bin/sh
  2. #/ Usage: newmsg /path/to/Maildir
  3. test -z "$1" && grep '^#/' <"$0" | cut -c4- >&2 && exit 2
  4. test "$1" && ls | tail -n1 | xargs -I {} egrep "^(From|Subject):" "{}" | cut -d ' ' -f2-
Add Comment
Please, Sign In to add comment