Skip to content

Instantly share code, notes, and snippets.

@zeroasterisk
Created June 2, 2015 17:46
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 zeroasterisk/9f788d2e30508c0612f0 to your computer and use it in GitHub Desktop.
Save zeroasterisk/9f788d2e30508c0612f0 to your computer and use it in GitHub Desktop.
Dart scan for terms
In this example, I am scanning for all of these classes
https://github.com/awatson1978/clinical-ui-vocabulary/
#!/bin/bash
for SEARCH in fixed-layout left-anchored right-anchored bottom-anchored top-anchored right-aligned left-aligned absolute-layout fixed-layout gray-border with-rounded-corners monospace clickable unselectable well-behaved padded padded-horizontal with-horizontal-padding horizontally-padded padded-vertical with-vertical-padding vertically-padded with-right-padding with-left-padding without-padding nopadding no-padding without-right-padding without-left-padding without-top-padding without-bottom-padding without-vertical-padding without-horizontal-padding dark light white black gray lightgray darkgray transparent glass fog mostly-opaque red blue green maroon
do
echo $SEARCH
ag -c -G .html "\b${SEARCH}\b"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment