Back to Help Center

BASES DU BASH (BASICS OF BASH)

Equipe Learning

Variables disponibles

Les variables disponibles sont :

Ce qui produit par exemple :

Le b.a.-ba du b.a.-ba

cd $PathSsh
for f in *.csv; do mv "$f" "$PathRepo"; done
for f in *.txt; do mv "$f" "$PathRepo"; done
for f in *.xls*; do mv $f "$PathSshexcel"; done

⚠️ Attention, les macros Excel n'acceptent pas XLS. Vous devez le renommer :

for f in *.XLS*; do newf=$(echo "$f" | sed -e "s|.XLS|.xls|"); mv "$f" "$newf";done

Aide-mémoire Bash (Bash cheatsheet)

Quelques commandes de base pour vous aider : ici

Réalisé par Zendesk