Skip to content

Instantly share code, notes, and snippets.

@yannick
Created November 18, 2018 23:42
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 yannick/548e3a704543339818cf28f93f6051a2 to your computer and use it in GitHub Desktop.
Save yannick/548e3a704543339818cf28f93f6051a2 to your computer and use it in GitHub Desktop.
#!/usr/bin/sh
ruby -n -e 'c= $_.split("\t")[2].to_s.match( /^(?<channel>#(\S*))\((?<users>\d*)\): (?<title>.*)/); puts
[c[:users], c[:channel], c[:title]].join("\t") rescue nil '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment