It works for me:
echo "a b c" | awk '{ print "a="$1",b="$2",c="$3; }'
a=a,b=b,c=c
uname -m
mips
busybox
BusyBox v1.16.1 (2010-04-15 17:53:29 CEST) multi-call binary.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
Notice: i have linked busybox against glibc (2.3.6)
--
Ralf
On Thu Apr 22 2010 01:31:43 GMT+0200 (CET), Ondrej Zima
<[email protected]> wrote:
Hi all,
I have one big problem using busybox with uClibc in embedded device with
mipsel architecture.
A creating some sh scripts where most used application is awk. I create
some scripts and they didn't works.
See following simple example:
echo "a b c" | awk '{ print "a="$1",b="$2",c="$3; }'
If I use it in my desktop Linux (Debian x86_64) the output is (as expected)
on...@keltek:~$ echo "a b c" | awk '{ print "a="$1",b="$2",c="$3; }'
a=a,b=b,c=c
But if I make the same on my busybox device, the output is wrong
defa...@venus:~# echo "a b c" | awk '{ print "a="$1",b="$2",c="$3; }'
a=,b=,c=
The mapping of arguments didn't works. And I don't know, what is wrong.
The uClibc or busybox or something other?
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox