Giter Site home page Giter Site logo

aahlp's Introduction

aahlp

Layout-ignorant text alphabetizer

Description

aahlp (the word alpha alphebetized. Clever, no?) will alphabetize only alphabetic characters (a-zA-Z) and leave all others alone. This yields an identically formatted text with only the alphabetic charaters in alphabetical order.

Installation

make && sudo make install

Usage

Usage: aahlp <infile>

Example

Shakespeare's Sonnet 29:

  When in disgrace with fortune and men's eyes
  I all alone beweep my outcast state,
  And trouble deaf heaven with my bootless cries,
  And look upon myself, and curse my fate,
  Wishing me like to one more rich in hope,
  Featur'd like him, like him with friends possess'd,
  Desiring this man's art, and that man's scope,
  With what I most enjoy contented least;
  Yet in these thoughts my self almost despising,
  Haply I think on thee,-- and then my state,
  Like to the lark at break of day arising
  From sullen earth, sings hymns at heaven's gate;
	For thy sweet love remember'd such wealth brings
	That then I scorn to change my state with kings.

After running through aahlp:

  aaaa aa AaaAaaaa aaaa aaaaaaa aaa aaa'a aaaa
  a bbb bbbcc cccccc cc ddddddd ddDdd,
  ddd deeeeee eeee eeeeee eeee ee eeeeeeee eeeee,
  eee eeee eeee eeeeee, eee eeeee ee efff,
  fFfffFF gg gggg gg ggg hhhh hhhh hh hhhh,
  hhhHhh'h hhhh hhh, hhhh iii Iiii iiiiiii iiiiiii'I,
  iiiIiiii iiIi ijk'k kkk, kkk klll lll'l lllll,
  llLl llll m mmmm mmmmm mmmmmmmmm mnnnn;
  nnn nn nnnnn nnnnnnnn nn nnnn nnnnnn nnnnooooo,
  ooooo o ooooo oo oooo,-- ooo ooop pp ppppr,
  rrrr rr rrr rrrr rr rrrrr ss sss sssssss
  ssss ssssss sssss, sssss sssss ss sssttt't tttt;
	ttt ttt ttttt tttt tttttttt't tttt tttttt Tttttt
	tuuu uuuu u uvvvW ww wWwWww ww yyyyy yYyy yyyyy.

Disclaimer

Example Shakespeare text used is courtesy of Project Gutenberg.

aahlp's People

Contributors

kevinselwyn avatar

Watchers

 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.