Skip to content

Instantly share code, notes, and snippets.

@ploubser
Created August 3, 2011 12:13
Show Gist options
  • Save ploubser/1122494 to your computer and use it in GitHub Desktop.
Save ploubser/1122494 to your computer and use it in GitHub Desktop.
JGrep wildcards
% cat ../ohlol.json |ruby -I ../lib/ jgrep -s data.*.parameters
[
[
{
"time_server": "time.mit.edu"
},
{
"time_server": "time.stanford.edu"
}
]
]
% cat ../ohlol.json |ruby -I ../lib/ jgrep -s data.*.parameters.*
time.mit.edu
time.stanford.edu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment