Git Product home page Git Product logo

qf's Introduction

fq-logo qf

Travis Code Climate Gem

qf is a Ruby gem that extracts specific substrings from a block of text.

qf is a productivity tool, it behaves like a standard Unix application and can be chained with other Unix commands.

It helps you extract:

  • Emails
  • URLs
  • Magnet Links
  • IPv4 & IPv6 Addressses
  • Credit Card Numbers

.. and much more from any stream with flexibility and convenience.

Installation

Add this line to your application's Gemfile:

gem 'qf'

And then execute:

$ bundle

Or install it yourself as:

$ gem install qf

Examples

qf behaves like a standard Unix application.

Let's say you want to extract URLs from a website:

curl kerembozdas.com | qf url

Emails from some contact page:

curl linux.com/contact | qf email

Or extract and save credit card numbers from a csv file:

cat customers.csv | qf creditcard > customer_ccn.txt

To see all the options you can use:

qf --list

Usage

Usage: qf [filter]

Options
 -h, --help       Prints this help page
 -l, --list       Lists available filters

Examples
  qf url
  qf magnet
  qf creditcard
  qf ipv4

This application uses standard input and output.

Contributing

  1. Fork it (https://github.com/krmbzds/qf/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Hint: You can add new rules to the rules.rb file.

Trivia

qf (pronounced as /kjuː eff/) is short for quick fetch, or quick find.
However, similar to how people pronounce SQL as sequel, the author likes to pronounce qf as queef.

License

The MIT License (MIT)
Copyright (c) 2016 Kerem Bozdas

qf's People

Contributors

besirkurtulmus avatar krmbzds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.