On Wed, Sep 18, 2013 at 05:00:09AM +0200, Martin Bähr wrote: > clear > while true > echo \e\[H > for i in (ls -tr) > du -sh $i > end | tail -20 | sed -e 's/^/'\e'\[K/' | cut -c -(math $COLUMNS - 2) > sleep 2 > end
one minor issue i still have is that in the above $COLUMNS appears to be evaluated only once. i'd like it to be reevaluated every time. is there a way to do that? greetings, martin. -- eKita - the online platform for your entire academic life hackerspace beijing - http://qike.info -- chief engineer eKita.co pike programmer pike.lysator.liu.se caudium.net foresight developer realss.com foresightlinux.org unix sysadmin trainer developer societyserver.org Martin Bähr working in china http://societyserver.org/mbaehr/ ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users