Find Files hollow line under linux line number

Find Files hollow line under linux line number

hollow lookup file line numbers in the line linux 

to aa.txt example: 

Method 1: sed -n '/ [a -zA-Z0-9 @ # $% ^ & *] / =!' aa.txt 
Method 2: grep -n ^ $ aa.txt 
method 3: awk '/ ^ $ / {print NR}' aa.txt 
method 4: sed -n '/ ^ $ / =' aa.txt
 

 

Guess you like

Origin www.cnblogs.com/stono/p/11578093.html