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

Natanael Copa natanael.copa at gmail.com
Fri Nov 26 12:57:18 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?

I used output of df but there was some release that put the filesystem
and the info on separate lines so my awk script failed. (that is fixed
in recent busybox though).

> Is there a better technique?

I ended up using stat instead of df.

-- 
Natanael Copa


More information about the busybox mailing list