Skip to content

Instantly share code, notes, and snippets.

@hylophile
Created September 14, 2024 17:25
Show Gist options
  • Select an option

  • Save hylophile/422bc19436daf5be5ec64d9943446924 to your computer and use it in GitHub Desktop.

Select an option

Save hylophile/422bc19436daf5be5ec64d9943446924 to your computer and use it in GitHub Desktop.
envsubst in one line of bash
#!/usr/bin/env
while IFS= read -r line; do eval echo "$line"; done < infile > outfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment