Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An easy way to query commandlinefu.com from the commandline
branch: working

This branch is even with samirahmed:working

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
Makefile
README.md
setup.py

README.md

What is Fu?

A simple commandline utility for querying commandlinefu.com

What is commandlinefu.com

CommandlineFu.com is an awesome website written by David Winterbottom It has a collection of neat commandline one liners for the unix shell

Why Fu ?

Fu makes commandlinefu more accessible because I find that I use CommandlineFu.com most when actually in the commandline

How do I use it?

You can query fu by adding any search terms as arguments

For example if you want to search for how to "send binary mail attachment"

    $ python fu.py send binary mail attachment

            # Send email with one or more binary attachments
                echo "Body goes here" | mutt -s "A subject" -a /path/to/file.tar.gz recipient@example.com

            # Send a binary file as an attachment to an email
                uuencode archive.tar.gz archive.tar.gz | mail -s "Emailing: archive.tar.gz" user@example.com

            804ms total:2

Using as unix executable

There is a very easy way to make this script an executable and add it to path on unix

See this great guide on how to make Python script executable on unix

If you want to use fu as a command you can

Something went wrong with that request. Please try again.