diff options
author | Florian Pritz <f-p@gmx.at> | 2009-03-30 15:47:40 +0200 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-03-30 15:47:40 +0200 |
commit | 190f00029ec60c4f2d28510a8e8b47041eaf0865 (patch) | |
tree | 5110465bb229c8e1ea2aa83f6369b4041b48606b /tempfs.sh | |
parent | b9c2ce5b7a2afc82fc70bf66140c8559dcce98c9 (diff) | |
download | bin-190f00029ec60c4f2d28510a8e8b47041eaf0865.tar.gz bin-190f00029ec60c4f2d28510a8e8b47041eaf0865.tar.xz |
use grep in tempfs.sh
Diffstat (limited to 'tempfs.sh')
-rwxr-xr-x | tempfs.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ #!/bin/bash #---------------------------------------------------- -# Version: 0.1.0 +# Version: 0.1.1 # Author: Florian "Bluewind" Pritz <f-p@gmx.at> # # Copyright (C) 2009 Florian Pritz @@ -12,7 +12,7 @@ # Upload file to tempfs and copy URL to cpulboard #---------------------------------------------------- -URL=$(curl -# -F userfile="@$1" -F 'expirationTime=5' -H "Expect: " http://www.tempfs.com/upload.php | ack 'http://.*/uploadedFiles/[^\s]*?' | sed 's/<\/span>//') +URL=$(curl -# -F userfile="@$1" -F 'expirationTime=5' -H "Expect: " http://www.tempfs.com/upload.php | grep -o 'http://.*/uploadedFiles/.*' | sed 's/<\/span>//') echo -n $URL | nohup >/dev/null 2>&1 xclip echo $URL |