Browse Source

sprunge: improved to support sed filtering

master
Alejandro Mery 11 years ago
parent
commit
fb99c153e4
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      files/bin/sprunge

+ 5
- 1
files/bin/sprunge

@ -1,3 +1,7 @@
#!/bin/sh
exec curl -F 'sprunge=<-' http://sprunge.us
if [ $# -eq 0 ]; then
cat
else
sed "$@"
fi | curl -F 'sprunge=<-' http://sprunge.us

Loading…
Cancel
Save