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 _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
