root / other-scripts / one-use / move-assos.sh @ 55b49f2d
1 | 55b49f2d | Julien Enselme | #!/usr/bin/env bash |
---|---|---|---|
2 | |||
3 | help=<<EOF |
||
4 | This script takes 2 arguments: the old and new location of assos' bin directory. It remplace |
||
5 | all occurences of the former emplacement are remplaced by the new one. |
||
6 | EOF |
||
7 | |||
8 | for file in $(ls $1/bin/*.sh) ; do |
||
9 | sed "s#$1#$2#" > $file.tmp |
||
10 | mv $file.tmp $file |
||
11 | done |