summaryrefslogtreecommitdiffstats
path: root/tempfs.sh
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-03-30 15:47:40 +0200
committerFlorian Pritz <f-p@gmx.at>2009-03-30 15:47:40 +0200
commit190f00029ec60c4f2d28510a8e8b47041eaf0865 (patch)
tree5110465bb229c8e1ea2aa83f6369b4041b48606b /tempfs.sh
parentb9c2ce5b7a2afc82fc70bf66140c8559dcce98c9 (diff)
downloadbin-190f00029ec60c4f2d28510a8e8b47041eaf0865.tar.gz
bin-190f00029ec60c4f2d28510a8e8b47041eaf0865.tar.xz
use grep in tempfs.sh
Diffstat (limited to 'tempfs.sh')
-rwxr-xr-xtempfs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tempfs.sh b/tempfs.sh
index 2602b9e..fd7401e 100755
--- a/tempfs.sh
+++ b/tempfs.sh
@@ -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