Skip to main content
added 2 characters in body
Source Link
choroba
  • 49.4k
  • 7
  • 92
  • 118

You can use pattern matching:

for i in $(drush site-alias) ; do
    if [[ $i == *.* ]] ; then
        drush $i"$i" command
    fi
done

You can use pattern matching:

for i in $(drush site-alias) ; do
    if [[ $i == *.* ]] ; then
        drush $i command
    fi
done

You can use pattern matching:

for i in $(drush site-alias) ; do
    if [[ $i == *.* ]] ; then
        drush "$i" command
    fi
done
Source Link
choroba
  • 49.4k
  • 7
  • 92
  • 118

You can use pattern matching:

for i in $(drush site-alias) ; do
    if [[ $i == *.* ]] ; then
        drush $i command
    fi
done