How to remove the uuid from Drupal 8 configuration exports using Bash

When exporting config in Drupal 8, it exports a uuid line in many of the .yml files. When exporting config for a distribution or similar, removing the lines that start with uuid is important. Here's a bash script for removing those lines from all files in a folder.

#!/bin/bash
FILES=/Users/frankenstein/config-d8/*
for f in $FILES
do
  echo "Processing $f file..."
  sed -i '' '/^uuid:/d' $f
done

Article Type

General