I'm having trouble passing the variable $APN to sed, tried lots of combinations of ' " \ \
First column of .csv files is a number, this code works:
cat *.csv > "$APN".csv #combine
sort -u "$APN".csv -o "$APN".csv #sort, remove duplicate APNs
sed -i '/^715/!d' combined2.csv #remove not 715
This code third line does nothing:
cat *.csv > "$APN".csv #combine
sort -u "$APN".csv -o "$APN".csv #sort, remove duplicate APNs
sed -i '/^$APN/!d' #remove not $APN