BASH - Using Bash script to find line number of string in file: $ ifconfig | awk '/wlp2s0/{ print NR; exit}'
All About Operating System: Unix, Linux, Raspberry Pi [ BASH - SOA - Oracle - Database - Software - Hardware ]
All About Operating System: Unix, Linux, Raspberry Pi [ BASH - SOA - Oracle - Database - Software - Hardware ]