1 2 3 4 5 6 7 8 9
#!/bin/bashwhile read linedo src=`echo $line | cut -d " " -f 2` des=`echo $line | cut -d " " -f 3` if [ "$src" = "$des" ]; then echo $line fidone < $1