Monthly Archive: April 2016

0

TextWrangler Text Filter collection

Location  ~/Library/Application Support/TextWrangler/Text Filters Tidy HTML.sh #!/bin/sh # run “tidy” on the file given as 1st (and only) parameter. # /usr/bin/tidy -utf8 -asxhtml -indent -wrap 100 -quiet 2> /dev/null Tidy XML.sh #!/bin/sh XMLLINT_INDENT=$” ” xmllint –format –encode utf-8 – Tidy JSON.py...

0

Lookup YARN Acls capacity scheduler queue users from /etc/passwd

Following is an awk script that I use in TextWrangler as a Text Filter. This script generates the required awk and grep commands to lookup /etc/passwd file. #!/bin/sh # gawk ‘{match($0,”([a-zA-Z]+).acl_submit_applications=(.*)”,a); if(a[1] != “”) print a[1] “\t” a[2] }’ #...