Skip to content

Instantly share code, notes, and snippets.

@dallarosa
Created March 22, 2012 01:22
Show Gist options
  • Save dallarosa/2155000 to your computer and use it in GitHub Desktop.
Save dallarosa/2155000 to your computer and use it in GitHub Desktop.
awk one-liner that takes a comma-separated list of username followed by names and creates links to each user's address.
awk -F", " '{print "<li><a href=\"http://example.com/~"$1"\">"$2"</a></li>"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment