if yes, can some expert give an example
Lei
With awk This prints all line that contains "AA" and "BB"
awk
awk '/AA/ && /BB/'
sed '/AA/!d;/BB/!d'