bbapplets - simple helper script
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Sun Aug 29 17:45:28 UTC 2010
On Sun, 29 Aug 2010, Harald Becker wrote:
> Here is a simple helper script (sh & sed), may be worth to be included
> in the distribution. It takes the output of busybox and creates a sorted
> list of applets, one name per line. May be used for things like this:
>
> busybox-build1 | bbapplets >applets-1.lst
> busybox-build2 | bbapplets >applets-2.lst
,----
| #!/bin/sh
| sed ' /^BusyBox/,/^Currently/d
| s/,$//
| s/,/\n/g
| s/[ \t]//g
| /^$/d
| ' | sort
`----
That doesn't work with older bb sed versions, but this:
,----
| #!/bin/sh
| sed ' /^BusyBox/,/^Currently/d
| s/,$//
| s/,/\n/g
| s/[[:blank:]]*//g
| /^$/d
| ' | sort
`----
does.
Cheers,
--
Cristian
More information about the busybox
mailing list