Révision 2f0625ee
Ajouté par Julien Enselme il y a environ 9 ans
bin/scripts-utils.sh | ||
---|---|---|
120 | 120 |
# ${1##*/} get the part after the last / ie default in /home/assos/drupal7/sites/default |
121 | 121 |
# $(tr '.' '\n' | tail -n 1) get the part after the last . |
122 | 122 |
# ie tvp in assos.centrale-marseille.fr.tvp |
123 |
echo $(echo ${1##*/} | tr '.' '\n' | tail -n 1)
|
|
123 |
echo ${1##*/} | tr '.' '\n' | tail -n 1
|
|
124 | 124 |
} |
Formats disponibles : Unified diff
Improve get_site_name_from_dir_name