T o n g wrote: ... > Any way to filter through external command to variable, somewhat like: > > head /etc/group | awk '{print $0 | "cut -d':' -f1" | getline result ;}' >
looks like you want to assign the output of command to a variable. in shell or bash use the backquote character ` result=`head /etc/group | cut -d: -f1` example run: me@ant(16)~$ result=`head /etc/group | cut -d: -f1` me@ant(17)~$ echo $result root daemon bin sys adm tty disk lp mail news songbird -- 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/6l52n9-eij....@id-306963.user.uni-berlin.de