quiethost
This commit is contained in:
1 parent
9c379af76b
commit
b3c06c0a80
47 files changed
+2116
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
# script: winlink
|
||||
# version: 0.2
|
||||
# author: Alex Osborn(alex_osborn0@hotmail.com)
|
||||
# date: 10 Jan 2010
|
||||
# tested: Ubuntu 9.10 (amd64)
|
||||
# description: Opens windows .url files in firefox, feel free to edit and use as needed just dont steal the credits!
|
||||
#
|
||||
TMP="/tmp/${0##*/}$$"
|
||||
cat "$@"|grep -s URL|grep -ivs eurl > $TMP
|
||||
LINE=1
|
||||
MAX=`cat $TMP|wc -l`
|
||||
while [ "$LINE" -le "$MAX" ];do
|
||||
LINK=`head -q "$TMP" -n $LINE|tail -qn 1|tail -qc +5`
|
||||
if [ -n "$LINK" ];then
|
||||
firefox -new-tab "$LINK"
|
||||
echo "$LINK"
|
||||
fi
|
||||
LINE=$((LINE+1))
|
||||
done
|
||||
rm $TMP
|
||||
Reference in new issue
Block a user