Hi!
I have created a rather tiny tool on python that plays a very simple role: Takes input from stdin (or from files) and, instead of printing one line after the other, keeps on writing over the same output line. A simple example:
Code:
$ echo start; tar zxvf ../eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz | tail -n 10; echo end
start
eclipse/icon.xpm
eclipse/dropins/
eclipse/.eclipseproduct
eclipse/epl-v10.html
eclipse/about_files/
eclipse/about_files/IJG_README
eclipse/about_files/mpl-v20.txt
eclipse/about_files/lgpl-v21.txt
eclipse/about_files/webkit-bsd.txt
eclipse/about_files/mpl-v11.txt
end
vs
Code:
$ echo start; tar zxvf ../eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz | jol; echo end
start
eclipse/about_files/mpl-v11.txt
end
So, while the tar process was going on, you could see the name of each file being decompressed on the same line. When it finishes, you see the last line.
It supports reading from stdin or from files, has an option to prepend output with the filename.
Now the question is.... what would be the next step to try to make it "known" by script-writers and readily/easily accessible?
https://github.com/eantoranz/jol
Thanks in advance