Skip to content

Instantly share code, notes, and snippets.

@cyberpirate92
Created October 25, 2018 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyberpirate92/b66ba8ab5e43d4db678995744eb8be87 to your computer and use it in GitHub Desktop.
Save cyberpirate92/b66ba8ab5e43d4db678995744eb8be87 to your computer and use it in GitHub Desktop.
Link: https://awk.js.org/
Command Line:
-F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}'
STDIN:
r/john | james | today
r/abc| def | hij
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment