Popular recipes tagged "awk" but not "bash"http://code.activestate.com/recipes/tags/awk-bash/2011-11-25T17:14:57-08:00ActiveState Code Recipesawk-like module (Python)
2011-11-25T17:14:57-08:00davidhttp://code.activestate.com/recipes/users/4179974/http://code.activestate.com/recipes/577962-awk-like-module/
<p style="color: grey">
Python
recipe 577962
by <a href="/recipes/users/4179974/">david</a>
(<a href="/recipes/tags/awk/">awk</a>).
</p>
<p>This python module is similar to awk (pattern scanning and processing language in unix/linux).
It scans the input file for lines, split each line to fields.
*._nr # AWK NR
*._nf # AWK NF
*._0r # AWK $0
*._1 # AWK strip($1)
*._1r # AWK $1 , raw string
*._1i # AWK int($1)
*._1f # AWK float($1)</p>
Pyliner - Script to run arbitrary Python code on the command line (Python)
2011-07-29T13:22:54-07:00Drew Gulinohttp://code.activestate.com/recipes/users/4119417/http://code.activestate.com/recipes/577075-pyliner-script-to-run-arbitrary-python-code-on-the/
<p style="color: grey">
Python
recipe 577075
by <a href="/recipes/users/4119417/">Drew Gulino</a>
(<a href="/recipes/tags/awk/">awk</a>, <a href="/recipes/tags/oneliner/">oneliner</a>, <a href="/recipes/tags/perl/">perl</a>, <a href="/recipes/tags/pipe/">pipe</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/sed/">sed</a>, <a href="/recipes/tags/sysadmin/">sysadmin</a>).
</p>
<p>A Python script that runs arbitrary Python scripts in an input loop. This allows one-liner Python scripts similarly to how Perl runs them (-l,-a,-n,-F, BEGIN, END)</p>
<p>It provides additional syntax that allows multiline Python scripts to be run on a single line</p>
awk sample (Bash)
2010-03-16T13:24:00-07:00J Yhttp://code.activestate.com/recipes/users/4170398/http://code.activestate.com/recipes/576876-awk-sample/
<p style="color: grey">
Bash
recipe 576876
by <a href="/recipes/users/4170398/">J Y</a>
(<a href="/recipes/tags/awk/">awk</a>).
</p>
<p>this is an awk sample</p>