Skip to content

Instantly share code, notes, and snippets.

@jfrost
Created January 23, 2009 01:26
Show Gist options
  • Save jfrost/50828 to your computer and use it in GitHub Desktop.
Save jfrost/50828 to your computer and use it in GitHub Desktop.
echo 1:2:3:4 | awk -F: '{prog = "/tmp/test " $3; while ((prog|getline output) > 0); print $1, $2, output; close(prog) }'
------------
/tmp/test:
------------
#!/bin/sh
echo "${1}567"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment