ind 0.12

ind - indent output from subprocess.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!

What's new in ind 0.12:

  • Terminal interaction fixes.
Read full changelog
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
3.5/5 15
DEVELOPED BY:
Thomas Habets
HOMEPAGE:
www.habets.pp.se
CATEGORY:
ROOT \ System \ System Administration
1 ind Screenshot:
ind
ind - indent output from subprocess. Perfect for scripting. Tested with {free,net,open}BSD, Linux, Solaris, Mac OS X on x86, amd64, alpha, sparc32, sparc64, PPC.

Why the name 'ind'?

If it makes you feel better, you can think of it as meaning "Indent to make reading output Not-Difficult".

Example uses

Let's say you're running a script that has several stages, each producing
some status output. Now you can indent the output from the substages.

>
echo "Stage 1, reconfooberating the ablamatron..."
ind -p "--> " cat blah.txt

echo "Stage 2, burning image..."
ind -p " " growisofs -Z /dev/hdc=randomcrap.img
>

This will produce the output:

>
Stage 1, reconfooberating the ablamatron...
--> This is a text file
--> with only text in it.
Stage 2, burning image...
...
...
...
>

Usage: ./ind [ -h ] [ -p < fmt > ] [ -a < fmt > ] [ -P < fmt > ] [ -A < fmt > ]
< command > < args > ...
-a Postfix stdout (default: "")
-A Postfix stderr (default: "")
-h Show this help text
-p Prefix stdout (default: " ")
-P Prefix stderr (default: ">>")

Format:

Normal text, except:

%% Insert %%
%c Insert output from ctime(3) function

Last updated on September 2nd, 2008

#indent output #substages output #read output #subprocess #indent #substages #reconfooberating

Add your review!

SUBMIT