ind

ind - indent output from subprocess.
Download

ind Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Thomas Habets
  • Publisher web site:
  • http://www.habets.pp.se/synscan/programs.php?prog=patch-linux-m1

ind Tags


ind Description

ind - indent output from subprocess. 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 usesLet's say you're running a script that has several stages, each producingsome status output. Now you can indent the output from the substages.>echo "Stage 1, reconfooberating the ablamatron..."ind -p "--> " cat blah.txtecho "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 < 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 What's New in This Release: · Terminal interaction fixes.


ind Related Software