diff --git a/shell_scripts/con_restart b/shell_scripts/con_restart
old mode 100755
new mode 100644
index 9625ddb..b7e7eb5
--- a/shell_scripts/con_restart
+++ b/shell_scripts/con_restart
@@ -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
diff --git a/shell_scripts/downloads_to_watch_later b/shell_scripts/downloads_to_watch_later
old mode 100755
new mode 100644
index 8bae167..729c0ba
--- a/shell_scripts/downloads_to_watch_later
+++ b/shell_scripts/downloads_to_watch_later
@@ -1,3 +1,3 @@
-#!/bin/sh
+#! /usr/bin/env bash
RATE=50k
wget -c --limit-rate=$RATE -i ~/to_download_and_watch
diff --git a/shell_scripts/error_search b/shell_scripts/error_search
old mode 100755
new mode 100644
index 16f274e..a628b47
--- a/shell_scripts/error_search
+++ b/shell_scripts/error_search
@@ -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"
diff --git a/shell_scripts/export_shared_links_per_person b/shell_scripts/export_shared_links_per_person
old mode 100755
new mode 100644
index b90e247..0fdc84e
--- a/shell_scripts/export_shared_links_per_person
+++ b/shell_scripts/export_shared_links_per_person
@@ -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/^/
/" | tac | sed "$ s/$/<\/table><\/html>/" | sed "s/^/ |
/" | sed "s/^\(.*\) +0200 \(.*\)/\1<\/td> | \2/" | sed "s/http\([^ ]*\)/http\1<\/a>/g" | sed "s/$/<\/td><\/tr>/" > ~/web/benetou.fr/fabien/pub/sharedlinks/$1.html
diff --git a/shell_scripts/gallery_making b/shell_scripts/gallery_making
old mode 100755
new mode 100644
index cdc0f63..ff90f86
--- a/shell_scripts/gallery_making
+++ b/shell_scripts/gallery_making
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# consider using convert to generate thumbnails and auto-rotate
echo "" > gallery.html && ls *.jpg *.JPG |sort -n| sed "s/\(.*\)/\1<\/a> /" > gallery.html && echo "" >> gallery.html
diff --git a/shell_scripts/gm_reverting_irc_logs_links b/shell_scripts/gm_reverting_irc_logs_links
old mode 100755
new mode 100644
index 16813a7..d842368
--- a/shell_scripts/gm_reverting_irc_logs_links
+++ b/shell_scripts/gm_reverting_irc_logs_links
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Greasemonkey#RevertedPIMLinks
# TODO
# properly declare
diff --git a/shell_scripts/gm_reverting_pim_links b/shell_scripts/gm_reverting_pim_links
old mode 100755
new mode 100644
index e7e6ded..a0cd09b
--- a/shell_scripts/gm_reverting_pim_links
+++ b/shell_scripts/gm_reverting_pim_links
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Greasemonkey#RevertedPIMLinks
# TODO
# properly declare
diff --git a/shell_scripts/last_tweeters_account_on_logname b/shell_scripts/last_tweeters_account_on_logname
old mode 100755
new mode 100644
index 63c447b..41ea63c
--- a/shell_scripts/last_tweeters_account_on_logname
+++ b/shell_scripts/last_tweeters_account_on_logname
@@ -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
diff --git a/shell_scripts/most_used_commands b/shell_scripts/most_used_commands
old mode 100755
new mode 100644
index 2aba13a..51f4a3d
--- a/shell_scripts/most_used_commands
+++ b/shell_scripts/most_used_commands
@@ -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
diff --git a/shell_scripts/mytasks b/shell_scripts/mytasks
old mode 100755
new mode 100644
index 8aef543..f8e5bc6
--- a/shell_scripts/mytasks
+++ b/shell_scripts/mytasks
@@ -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
diff --git a/shell_scripts/ratp_now b/shell_scripts/ratp_now
old mode 100755
new mode 100644
index 87fc0ba..487d412
--- a/shell_scripts/ratp_now
+++ b/shell_scripts/ratp_now
@@ -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"'
diff --git a/shell_scripts/recently_modified_etc_configs b/shell_scripts/recently_modified_etc_configs
old mode 100755
new mode 100644
index 33180dc..e44e220
--- a/shell_scripts/recently_modified_etc_configs
+++ b/shell_scripts/recently_modified_etc_configs
@@ -1,2 +1,2 @@
-#!/bin/sh
+#! /usr/bin/env bash
find /etc/ -mtime -1 -name *.conf
diff --git a/shell_scripts/social_behavior_distribution b/shell_scripts/social_behavior_distribution
old mode 100755
new mode 100644
index df4bae9..abd22a4
--- a/shell_scripts/social_behavior_distribution
+++ b/shell_scripts/social_behavior_distribution
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Irssi#LogsSocialBehaviors
if [ $# -lt 1 ]
diff --git a/shell_scripts/social_grep b/shell_scripts/social_grep
old mode 100755
new mode 100644
index 1c71270..4bf6b8d
--- a/shell_scripts/social_grep
+++ b/shell_scripts/social_grep
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Shell#Scripting
# shell prototype
# if 0 args display help
diff --git a/shell_scripts/tunkranker b/shell_scripts/tunkranker
old mode 100755
new mode 100644
index 21e351f..62166da
--- a/shell_scripts/tunkranker
+++ b/shell_scripts/tunkranker
@@ -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
diff --git a/shell_scripts/videolectures_rtmpdump_warper b/shell_scripts/videolectures_rtmpdump_warper
old mode 100755
new mode 100644
index 45959f7..d86342d
--- a/shell_scripts/videolectures_rtmpdump_warper
+++ b/shell_scripts/videolectures_rtmpdump_warper
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# http://fabien.benetou.fr/Tools/Tools#RTMPDump
if [ $# -lt 1 ]
then
diff --git a/shell_scripts/wiki_average_words_per_diff b/shell_scripts/wiki_average_words_per_diff
old mode 100755
new mode 100644
index 3784f7f..438ce28
--- a/shell_scripts/wiki_average_words_per_diff
+++ b/shell_scripts/wiki_average_words_per_diff
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# takes are argument the wiki root
diff --git a/shell_scripts/wiki_contribution_distribution b/shell_scripts/wiki_contribution_distribution
old mode 100755
new mode 100644
index bb87d2e..c0b9e4d
--- a/shell_scripts/wiki_contribution_distribution
+++ b/shell_scripts/wiki_contribution_distribution
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
#if not in wiki.d/ via pwd or parameter
##then display help
diff --git a/shell_scripts/wiki_diff_distribution b/shell_scripts/wiki_diff_distribution
old mode 100755
new mode 100644
index 255310a..71c90a4
--- a/shell_scripts/wiki_diff_distribution
+++ b/shell_scripts/wiki_diff_distribution
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# to use in wiki root
## XXX this is not consistent with some other commands
diff --git a/shell_scripts/wiki_link_checking b/shell_scripts/wiki_link_checking
old mode 100755
new mode 100644
index 5d5be7e..a6650a0
--- a/shell_scripts/wiki_link_checking
+++ b/shell_scripts/wiki_link_checking
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# http://fabien.benetou.fr/Wiki/ToDo#Maintenance
# TODO
# generalize for other URLs
diff --git a/shell_scripts/wiki_list_content b/shell_scripts/wiki_list_content
old mode 100755
new mode 100644
index 3e70730..8fb3a87
--- a/shell_scripts/wiki_list_content
+++ b/shell_scripts/wiki_list_content
@@ -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);
diff --git a/shell_scripts/wiki_oldest_mentions b/shell_scripts/wiki_oldest_mentions
old mode 100755
new mode 100644
index 670729e..11bf064
--- a/shell_scripts/wiki_oldest_mentions
+++ b/shell_scripts/wiki_oldest_mentions
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# http://fabien.benetou.fr/MemoryRecalls/ImprovingPIM
# TODO
# discard multiple edits on the same page
diff --git a/shell_scripts/wiki_page_diffs b/shell_scripts/wiki_page_diffs
old mode 100755
new mode 100644
index abb5b5e..ded1478
--- a/shell_scripts/wiki_page_diffs
+++ b/shell_scripts/wiki_page_diffs
@@ -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
diff --git a/shell_scripts/wiki_page_diffs_visualization b/shell_scripts/wiki_page_diffs_visualization
old mode 100755
new mode 100644
index 335eca9..b2a2b11
--- a/shell_scripts/wiki_page_diffs_visualization
+++ b/shell_scripts/wiki_page_diffs_visualization
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# deprecated for Processing visualizations http://fabien.benetou.fr/Wiki/Visualization#timeline
if [[ ! ("$#" == 1) ]]; then
diff --git a/shell_scripts/wiki_per_page_diffs_visualization b/shell_scripts/wiki_per_page_diffs_visualization
old mode 100755
new mode 100644
index 7ed27e4..f8d16c6
--- a/shell_scripts/wiki_per_page_diffs_visualization
+++ b/shell_scripts/wiki_per_page_diffs_visualization
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# deprecated for Processing visualizations http://fabien.benetou.fr/Wiki/Visualization#timeline
diff --git a/shell_scripts/wiki_recent_untrusted_edits b/shell_scripts/wiki_recent_untrusted_edits
old mode 100755
new mode 100644
index 08a04eb..9ab6edd
--- a/shell_scripts/wiki_recent_untrusted_edits
+++ b/shell_scripts/wiki_recent_untrusted_edits
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# TODO
# fix untrusted_edits path problem first
# note that the output format changed too
diff --git a/shell_scripts/wiki_semantic_categories b/shell_scripts/wiki_semantic_categories
old mode 100755
new mode 100644
index dd6ab54..d8122c2
--- a/shell_scripts/wiki_semantic_categories
+++ b/shell_scripts/wiki_semantic_categories
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# to execute in wiki.d/
diff --git a/shell_scripts/wiki_total_diffs b/shell_scripts/wiki_total_diffs
old mode 100755
new mode 100644
index f7be7fa..40fa092
--- a/shell_scripts/wiki_total_diffs
+++ b/shell_scripts/wiki_total_diffs
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# takes are argument the wiki root
diff --git a/shell_scripts/wiki_untrusted_edits b/shell_scripts/wiki_untrusted_edits
old mode 100755
new mode 100644
index 096aa3c..79e5733
--- a/shell_scripts/wiki_untrusted_edits
+++ b/shell_scripts/wiki_untrusted_edits
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/env bash
# TODO
# BUG! works with . but not with full path
EXP_ARGS=1
|