Projet

Général

Profil

Révision 55b49f2d

Ajouté par Julien Enselme il y a environ 10 ans

Add script to move assos' home

Voir les différences:

other-scripts/one-use/move-assos.sh
1
#!/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

Formats disponibles : Unified diff