Skip to main content
deleted 37 characters in body
Source Link
birgire
  • 67.8k
  • 7
  • 119
  • 251

Not exactly WordPress related, but here's a shortHere's an example using a find with a directory type and zero maxdepth:

$ find /srv/users/serverpilot/apps/*/public/ \
-type d \
-maxdepth 0 \
-exec /usr/local/bin/wp core update --path={} \;

or in a single line:

$ find /srv/users/serverpilot/apps/*/public/ -type d -maxdepth 0 -exec /usr/local/bin/wp core update --path={} \;

Not exactly WordPress related, but here's a short example using a find with a directory type and zero maxdepth:

$ find /srv/users/serverpilot/apps/*/public/ \
-type d \
-maxdepth 0 \
-exec /usr/local/bin/wp core update --path={} \;

or in a single line:

$ find /srv/users/serverpilot/apps/*/public/ -type d -maxdepth 0 -exec /usr/local/bin/wp core update --path={} \;

Here's an example using find with a directory type and zero maxdepth:

$ find /srv/users/serverpilot/apps/*/public/ \
-type d \
-maxdepth 0 \
-exec /usr/local/bin/wp core update --path={} \;

or in a single line:

$ find /srv/users/serverpilot/apps/*/public/ -type d -maxdepth 0 -exec /usr/local/bin/wp core update --path={} \;
Source Link
birgire
  • 67.8k
  • 7
  • 119
  • 251

Not exactly WordPress related, but here's a short example using a find with a directory type and zero maxdepth:

$ find /srv/users/serverpilot/apps/*/public/ \
-type d \
-maxdepth 0 \
-exec /usr/local/bin/wp core update --path={} \;

or in a single line:

$ find /srv/users/serverpilot/apps/*/public/ -type d -maxdepth 0 -exec /usr/local/bin/wp core update --path={} \;