Skip to content

Instantly share code, notes, and snippets.

@iamstoick
Created August 9, 2017 01:53
Show Gist options
  • Save iamstoick/a52852460da4afc18ed9562ee56d45d7 to your computer and use it in GitHub Desktop.
Save iamstoick/a52852460da4afc18ed9562ee56d45d7 to your computer and use it in GitHub Desktop.
Copy file content to multiple destination at once.

According to cp man page. cp can copy from multiple sources, but can't copy to multiple destinations. See man cp for more info.

tee be.de{v,v-1,v-2,v-3}/app/sites/default/settings.php < be.staging/app/sites/default/settings.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment