Removing the UUID out of your .yml files with a BASH script
I have been working on a Drupal 8 multisite and at some point I had to set up a new site in the structure. The fastest approach was to copy the config .yml files of the first site.
An important step was to remove the UUID's in the config .yml files.
I made this small bash script to make my life (and yours) easy:
#!/bin/bash FILES=/www/mywebsite/sites/default/config/sync/* for f in $FILES do echo "Processing $f .yml file" sed -i '' '/^uuid:/d' $f done
Make sure you change the FILES variable to the path with your configuration files.