Tidyup

by Lin Jen-Shin http://godfat.org

DESCRIPTION:

! ( ) Tidy document s up your

Inspired by The Art of Clean Up: Sorting and Stacking Everyday Objects

REQUIREMENTS:

  • Ruby 1.9.2+ for fullwidth unicode detection, otherwise Ruby 1.8.7+

INSTALLATION:

gem install tidyup

SYNOPSIS:

$ man echo | tidyup

Shows you:

' ' ' ' ' ' ' ' ( ( ( ( ( ( ( ( ( ( ( ( ( ) ) ) ) ) ) ) ) )
) ) ) , , , , , , , , , - - - - - - - - - - - - - - - . . . . . . . . . . . . .
. . . . . 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1003 1003 12 2001 2001 2002 2002
: > A AL AM AN AR AT Applications April BSD BSD BSD CR Commands Consult Cor Cor
DA DE DS Do E E E ECHO ECHO EE ES EX General IEEE IEEE IO IP IS IT LS ME Manual
N N NA ND NO Note O ON OP POSIX POSIX PS PT RD RI S S S S S S S SC SE SI SO ST
SY Some Std Std T TA TA TI TU The The The The This US XI YN [ [ \ \ \ ] ] _ _ _
` ` ` ` ` ` ` ` a a accept achieved aiming also amended amended an and and any
are are arguments as as as as as available be blank builtin builtin builtin
by by by by by by c c ch ch ch ch ch ch ch character character character
command compatible conforms csh dard defined does done e e e e e e e ec ec ec
ec ec ec effect encouraged end error exits followed following for g ho ho ho ho
ho ho iBCS2 i_ iden if implementation in in is is is manual maximum may may n n
n n n n n_ newline newline newline not not notably o o o o o o o occurs of of
operands option option option or output output page portability print printf
provide r_ s_ separated sh sh shells similar single specified stan standard
strongly success suppress systems t_ that the the the the the the the the the
this this tical to to to to to to to trailing use utility utility utility
well which write writes

And this:

$ tidyup /some/where/in/the/universe/**/*.lisp

Shows you:

[...]

( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( (
( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( (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( (
( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( (
( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( (
( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( (
( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( (
( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( (
( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( (
( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( (

LICENSE:

Apache License 2.0

Copyright (c) 2011, Lin Jen-Shin

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   <http://www.apache.org/licenses/LICENSE-2.0>

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.