Try the below, atq | awk '{print $1}'