File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ gem install haste
26
26
If you supply a valid file path as argument #1 to the client, it will be uploaded:
27
27
28
28
``` bash
29
- # equivelant
29
+ # equivalent
30
30
cat file | haste
31
31
haste file
32
32
```
@@ -67,16 +67,16 @@ If you'd like an alternative on Windows that supports functionality similar to `
67
67
68
68
## Lightweight Alternative
69
69
70
- Han Boetes has contributed a simple shell-script alternative for those not interested in installing a RubyGem:
70
+ Han Boetes and @ nickthename have contributed a simple shell-script alternative for those not interested in installing a RubyGem:
71
71
72
72
``` bash
73
- haste (){ ( echo " % $@ " ; eval " $@ " ) | curl -F " $@ =<- " http://hastebin.com/documents| awk -F ' "' ' {print "http://hastebin.com/"$4}' }
73
+ haste () { a= $( cat ) ; curl -X POST -s -d " $a " http://hastebin.com/documents | awk -F ' "' ' {print "http://hastebin.com/"$4}' ; }
74
74
```
75
75
76
76
Usage:
77
77
78
78
``` bash
79
- haste ` cat index.html
79
+ cat file.txt | haste
80
80
```
81
81
82
82
## Author
Original file line number Diff line number Diff line change 1
1
module Haste
2
2
3
- VERSION = '0.1.7 '
3
+ VERSION = '0.2.0 '
4
4
5
5
end
You can’t perform that action at this time.
0 commit comments