Created
November 18, 2018 23:42
-
-
Save yannick/548e3a704543339818cf28f93f6051a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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