proper bash interpreter initialization

This commit is contained in:
Fabien Benetou
2011-07-14 02:01:00 +02:00
parent 8bc2cf1b2e
commit 08e19d2a2b
29 changed files with 29 additions and 29 deletions
Executable → Regular
+1 -1
View File
@@ -1,3 +1,3 @@
#!/bin/sh
#! /usr/bin/env bash
CON=`nmcli con list | grep wireless | sed "s/ .*//"`
nmcli con down id $CON && nmcli con up id $CON
+1 -1
View File
@@ -1,3 +1,3 @@
#!/bin/sh
#! /usr/bin/env bash
RATE=50k
wget -c --limit-rate=$RATE -i ~/to_download_and_watch
Executable → Regular
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
if [ $# -lt 1 ]
then
echo "usage: my_failing_cmd 2>&1 > /dev/null | error_search"
+1 -1
View File
@@ -1,3 +1,3 @@
#!/bin/sh
#! /usr/bin/env bash
# if no $1 then ask for person name
grep $1 ~/sharedlinks | sed "s/$1 //" | sed "$ s/^/<html><table><tr><td>/" | tac | sed "$ s/$/<\/table><\/html>/" | sed "s/^/<tr><td>/" | sed "s/^\(.*\) +0200 \(.*\)/\1<\/td><td>\2/" | sed "s/http\([^ ]*\)/<a href=\"http\1\">http\1<\/a>/g" | sed "s/$/<\/td><\/tr>/" > ~/web/benetou.fr/fabien/pub/sharedlinks/$1.html
Executable → Regular
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# consider using convert to generate thumbnails and auto-rotate
echo "<html>" > gallery.html && ls *.jpg *.JPG |sort -n| sed "s/\(.*\)/<a href=\"\1\"><img height=\"200px\" src=\"\1\"\/>\1<\/a><br\/>/" > gallery.html && echo "</html>" >> gallery.html
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Greasemonkey#RevertedPIMLinks
# TODO
# properly declare
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Greasemonkey#RevertedPIMLinks
# TODO
# properly declare
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/sh
#! /usr/bin/env bash
curl http://search.twitter.com/search?q=$LOGNAME | grep profile | sed "s/.*com\/\(.*\)\" onclick.*/http:\/\/twitter.com\/\1/" | grep -v $LOGNAME | sort | uniq
Executable → Regular
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
AVOID="con\|utopiah@benetou.fr"
echo consider also http://fabien.benetou.fr/Tools/ and exercises
Executable → Regular
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# learn more about cron, at and batch
## note that at also requires to specify the DISPLAY
Executable → Regular
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
if [ $# -lt 2 ]
then
echo 'usage ratp_now "la varenne-chennevieres (RER)" "gare de l est (SNCF), paris"'
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/sh
#! /usr/bin/env bash
find /etc/ -mtime -1 -name *.conf
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Irssi#LogsSocialBehaviors
if [ $# -lt 1 ]
Executable → Regular
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Shell#Scripting
# shell prototype
# if 0 args display help
Executable → Regular
+1 -1
View File
@@ -1,3 +1,3 @@
#!/bin/sh
#! /usr/bin/env bash
# generalize via a parameter, default back to USER
curl http://tunkrank.com/refresh/utopiah.json && curl http://tunkrank.com/score/utopiah.json >> ~/web/benetou.fr/fabien/pub/socialbehaviors/tunkrank_utopiah.txt && echo "" >> ~/web/benetou.fr/fabien/pub/socialbehaviors/tunkrank_utopiah.txt
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Tools#RTMPDump
if [ $# -lt 1 ]
then
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# takes are argument the wiki root
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
#if not in wiki.d/ via pwd or parameter
##then display help
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# to use in wiki root
## XXX this is not consistent with some other commands
Executable → Regular
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# http://fabien.benetou.fr/Wiki/ToDo#Maintenance
# TODO
# generalize for other URLs
Executable → Regular
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
#to be done in the root of the wiki
for X in $(ls $1/wiki.d);
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# http://fabien.benetou.fr/MemoryRecalls/ImprovingPIM
# TODO
# discard multiple edits on the same page
Executable → Regular
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
## to be done in wiki.d/
grep diff: $1 | awk '{FS=":"; print $2}' | sort -n | uniq
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# deprecated for Processing visualizations http://fabien.benetou.fr/Wiki/Visualization#timeline
if [[ ! ("$#" == 1) ]]; then
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# deprecated for Processing visualizations http://fabien.benetou.fr/Wiki/Visualization#timeline
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# TODO
# fix untrusted_edits path problem first
# note that the output format changed too
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# to execute in wiki.d/
Executable → Regular
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# takes are argument the wiki root
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#! /usr/bin/env bash
# TODO
# BUG! works with . but not with full path
EXP_ARGS=1