#!/bin/bash File="domainList.txt" while IFS= read -r line do cat sample.yml | sed 's/foo.com/'$line'/g' > /path_to_dir/dir_name/$line.yml echo "domain: $line" done < "$File"
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter