Question: I'm trying to get this script to `cat` a file and `grep` each line for `877` and for each line found, print the first column which is an IP and store it in hosts. It get stuck on `awk` every time. I run `sh -x some.sh` to see where it is hung up. Should I print to a file instead of a list? Why does it get stuck on `awk`?

```
hosts=()

FILENAME=/home/somethin/.hosts.conf

ips=`cat $FILENAME | grep -v '877'`

for line in $ips; do
     hosts=$(`awk '{print $1}'`)
done

echo $hosts

```

Answer: 
It can all be done using awk:

```
hosts=( $(awk '/877/{print $1}' $FILENAME) )

echo "${hosts[@]}"

```
Try `echo $line | awk '{print $1}'`