1 2 3 4 5
#! /bin/sh aconnect -i | grep 'LPK25' | sed -e 's/^[^0-9]*\([0-9][0-9]\).*/\1/' > num_count.txt sed -n '1p' num_count.txt > num_count2.txt