Why wouldn't bash's split() work in such an easy case? ~ lbrtchx ~ #!/bin/bash
_az="a b c a 2 3" echo "// __ \$_az: \"$_az\"" n = split($_az,array," ") echo "// __ \$_n: |$_n|" ~ ~ ~ ~ error message ~ ~ ~ ~ $ which awk /usr/bin/awk $ awk --version GNU Awk 3.1.7 Copyright (C) 1989, 1991-2009 Free Software Foundation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cafakbwixf52vpp7xltr4dvr1+vxyh-lc-fm3rdwimvkbouh...@mail.gmail.com