Skip to content

Instantly share code, notes, and snippets.

@bfontaine
Created October 2, 2017 13:37
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 bfontaine/40a84dc3a22387009684f29362dafc5a to your computer and use it in GitHub Desktop.
Save bfontaine/40a84dc3a22387009684f29362dafc5a to your computer and use it in GitHub Desktop.
#! /bin/bash
# meq = multi-line eq
# See https://github.com/jonase/eq#eq-edn-query
EQ=eq
while read line; do echo "$line" | $EQ $@ ; done
@bfontaine
Copy link
Author

bfontaine commented Oct 2, 2017

E.g.:

cat * | ./meq.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment