On Sep 17, 2013, at 9:44 PM, Martin Bähr <mba...@email.archlab.tuwien.ac.at> wrote:
> 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? Hi Martin, Try using 'tput cols' to get the terminal width instead. Hope that helps, _fish ------------------------------------------------------------------------------ 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