ind - indent output from subprocess.
Why the name 'ind'?
If it makes you feel better, you can think of it as meaning "Indent to make reading output Not-Difficult".
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: ">>")
Normal text, except:
%% Insert %%
%c Insert output from ctime(3) function
In a hurry? Add it to your Download Basket!
What's New in This Release:
- Terminal interaction fixes.