One-liner to analyze Python programs

The great benefit of knowing the command-line is being able to write scripts to analyze scripts, all in ~1 minute.

Add to your .bash_profile.

# get list of objects and functions in a python file
alias python_structure="perl -ne'print if /\\b(?<!:)(class|def)\\s/'"


block out this &lt;a href=;online casino&lt;/a&gt; where you can conquer genuine funds with the serve of this guidePlaying &lt;a href=;casino games&lt;/a&gt;

— by JasonBep on 10th Feb, 2017

Add your voice