proper bash interpreter initialization

master
Fabien Benetou 14 years ago
parent 8bc2cf1b2e
commit 08e19d2a2b
  1. 2
      shell_scripts/con_restart
  2. 2
      shell_scripts/downloads_to_watch_later
  3. 2
      shell_scripts/error_search
  4. 2
      shell_scripts/export_shared_links_per_person
  5. 2
      shell_scripts/gallery_making
  6. 2
      shell_scripts/gm_reverting_irc_logs_links
  7. 2
      shell_scripts/gm_reverting_pim_links
  8. 2
      shell_scripts/last_tweeters_account_on_logname
  9. 2
      shell_scripts/most_used_commands
  10. 2
      shell_scripts/mytasks
  11. 2
      shell_scripts/ratp_now
  12. 2
      shell_scripts/recently_modified_etc_configs
  13. 2
      shell_scripts/social_behavior_distribution
  14. 2
      shell_scripts/social_grep
  15. 2
      shell_scripts/tunkranker
  16. 2
      shell_scripts/videolectures_rtmpdump_warper
  17. 2
      shell_scripts/wiki_average_words_per_diff
  18. 2
      shell_scripts/wiki_contribution_distribution
  19. 2
      shell_scripts/wiki_diff_distribution
  20. 2
      shell_scripts/wiki_link_checking
  21. 2
      shell_scripts/wiki_list_content
  22. 2
      shell_scripts/wiki_oldest_mentions
  23. 2
      shell_scripts/wiki_page_diffs
  24. 2
      shell_scripts/wiki_page_diffs_visualization
  25. 2
      shell_scripts/wiki_per_page_diffs_visualization
  26. 2
      shell_scripts/wiki_recent_untrusted_edits
  27. 2
      shell_scripts/wiki_semantic_categories
  28. 2
      shell_scripts/wiki_total_diffs
  29. 2
      shell_scripts/wiki_untrusted_edits

@ -1,3 +1,3 @@
#!/bin/sh #! /usr/bin/env bash
CON=`nmcli con list | grep wireless | sed "s/ .*//"` CON=`nmcli con list | grep wireless | sed "s/ .*//"`
nmcli con down id $CON && nmcli con up id $CON nmcli con down id $CON && nmcli con up id $CON

@ -1,3 +1,3 @@
#!/bin/sh #! /usr/bin/env bash
RATE=50k RATE=50k
wget -c --limit-rate=$RATE -i ~/to_download_and_watch wget -c --limit-rate=$RATE -i ~/to_download_and_watch

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
if [ $# -lt 1 ] if [ $# -lt 1 ]
then then
echo "usage: my_failing_cmd 2>&1 > /dev/null | error_search" echo "usage: my_failing_cmd 2>&1 > /dev/null | error_search"

@ -1,3 +1,3 @@
#!/bin/sh #! /usr/bin/env bash
# if no $1 then ask for person name # 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 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

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# consider using convert to generate thumbnails and auto-rotate # 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 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,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Greasemonkey#RevertedPIMLinks # http://fabien.benetou.fr/Tools/Greasemonkey#RevertedPIMLinks
# TODO # TODO
# properly declare # properly declare

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Greasemonkey#RevertedPIMLinks # http://fabien.benetou.fr/Tools/Greasemonkey#RevertedPIMLinks
# TODO # TODO
# properly declare # properly declare

@ -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 curl http://search.twitter.com/search?q=$LOGNAME | grep profile | sed "s/.*com\/\(.*\)\" onclick.*/http:\/\/twitter.com\/\1/" | grep -v $LOGNAME | sort | uniq

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
AVOID="con\|utopiah@benetou.fr" AVOID="con\|utopiah@benetou.fr"
echo consider also http://fabien.benetou.fr/Tools/ and exercises echo consider also http://fabien.benetou.fr/Tools/ and exercises

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# learn more about cron, at and batch # learn more about cron, at and batch
## note that at also requires to specify the DISPLAY ## note that at also requires to specify the DISPLAY

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
if [ $# -lt 2 ] if [ $# -lt 2 ]
then then
echo 'usage ratp_now "la varenne-chennevieres (RER)" "gare de l est (SNCF), paris"' echo 'usage ratp_now "la varenne-chennevieres (RER)" "gare de l est (SNCF), paris"'

@ -1,2 +1,2 @@
#!/bin/sh #! /usr/bin/env bash
find /etc/ -mtime -1 -name *.conf find /etc/ -mtime -1 -name *.conf

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Irssi#LogsSocialBehaviors # http://fabien.benetou.fr/Tools/Irssi#LogsSocialBehaviors
if [ $# -lt 1 ] if [ $# -lt 1 ]

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Shell#Scripting # http://fabien.benetou.fr/Tools/Shell#Scripting
# shell prototype # shell prototype
# if 0 args display help # if 0 args display help

@ -1,3 +1,3 @@
#!/bin/sh #! /usr/bin/env bash
# generalize via a parameter, default back to USER # 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 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,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Tools#RTMPDump # http://fabien.benetou.fr/Tools/Tools#RTMPDump
if [ $# -lt 1 ] if [ $# -lt 1 ]
then then

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# takes are argument the wiki root # takes are argument the wiki root

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
#if not in wiki.d/ via pwd or parameter #if not in wiki.d/ via pwd or parameter
##then display help ##then display help

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# to use in wiki root # to use in wiki root
## XXX this is not consistent with some other commands ## XXX this is not consistent with some other commands

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# http://fabien.benetou.fr/Wiki/ToDo#Maintenance # http://fabien.benetou.fr/Wiki/ToDo#Maintenance
# TODO # TODO
# generalize for other URLs # generalize for other URLs

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
#to be done in the root of the wiki #to be done in the root of the wiki
for X in $(ls $1/wiki.d); for X in $(ls $1/wiki.d);

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# http://fabien.benetou.fr/MemoryRecalls/ImprovingPIM # http://fabien.benetou.fr/MemoryRecalls/ImprovingPIM
# TODO # TODO
# discard multiple edits on the same page # discard multiple edits on the same page

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
## to be done in wiki.d/ ## to be done in wiki.d/
grep diff: $1 | awk '{FS=":"; print $2}' | sort -n | uniq grep diff: $1 | awk '{FS=":"; print $2}' | sort -n | uniq

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# deprecated for Processing visualizations http://fabien.benetou.fr/Wiki/Visualization#timeline # deprecated for Processing visualizations http://fabien.benetou.fr/Wiki/Visualization#timeline
if [[ ! ("$#" == 1) ]]; then if [[ ! ("$#" == 1) ]]; then

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# deprecated for Processing visualizations http://fabien.benetou.fr/Wiki/Visualization#timeline # deprecated for Processing visualizations http://fabien.benetou.fr/Wiki/Visualization#timeline

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# TODO # TODO
# fix untrusted_edits path problem first # fix untrusted_edits path problem first
# note that the output format changed too # note that the output format changed too

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# to execute in wiki.d/ # to execute in wiki.d/

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# takes are argument the wiki root # takes are argument the wiki root

@ -1,4 +1,4 @@
#!/bin/sh #! /usr/bin/env bash
# TODO # TODO
# BUG! works with . but not with full path # BUG! works with . but not with full path
EXP_ARGS=1 EXP_ARGS=1

Loading…
Cancel
Save