1
# bash
for s in lir_d*; do ( cd "$s"; git pull; ); done
# note we don't need to use a subshell
# note also that variables are objects, so we need to use $x.name
ls lir_d* | each { |x| cd $x.name ; git pull } # bash
for s in lir_d*; do ( cd "$s"; git pull; ); done
# note we don't need to use a subshell
# note also that variables are objects, so we need to use $x.name
ls lir_d* | each { |x| cd $x.name ; git pull }