Expension

De Linuxmemo.

(Différences entre les versions)
Ligne 1 : Ligne 1 :
[[Catégorie:Bash]]
[[Catégorie:Bash]]
 +
ref: http://wiki.bash-hackers.org/syntax/pe
==Bash expension==
==Bash expension==

Version du 10 octobre 2018 à 09:16

ref: http://wiki.bash-hackers.org/syntax/pe

Bash expension

mkdir rep{1,2,3}
mkdir: création du répertoire «rep1»
mkdir: création du répertoire «rep2»
mkdir: création du répertoire «rep3»


cp ntp.conf{,.bak}
«ntp.conf» -> «ntp.conf.bak»
ls ntp*
ntp.conf  ntp.conf.bak


mv ntp.conf{,.bak}
«ntp.conf» -> «ntp.conf.bak»
ls ntp*
ntp.conf.bak


for i in {1..12};do ping -c 1 192.168.0.{$i} ;done
Outils personnels