ind 0.12

ind - indent output from subprocess.
ind
  1 Screenshot
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, 14:05 GMT
price:
FREE!
homepage:
www.habets.pp.se
license type:
GPL (GNU General Public License) 
developed by:
Thomas Habets
category:
ROOT \ System \ System Administration
ind
Download Button

In a hurry? Add it to your Download Basket!

user rating 15

3.5/5
 

0/5

Rate it!
What's New in This Release:
  • Terminal interaction fixes.
read full changelog

Add your review!

SUBMIT