Expension
De Linuxmemo.
Version du 10 octobre 2018 à 09:16 par Linuxmemo (discuter | contributions)
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