stability of column-widths in output from df, route etc

Denys Vlasenko vda.linux at googlemail.com
Fri Nov 26 11:32:07 UTC 2010


On Fri, Nov 26, 2010 at 11:00 AM, David Collier
<from_busybox_maillist at dexdyne.com> wrote:
> I have some scripts which manipulate the output of route, and df, by
> using cut -c8-12 or similar to extract the info I want.
>
> How risky is this - what are the chances of someone making a column wider
> or narrower in a future issue of busybox?
>
> Is there a better technique?

Trim all whitespace to single spaces (sed 's/  */ /g'),
then separate fields on the space char.

-- 
vda


More information about the busybox mailing list