parousia1337A80@tg says to Ubuntu 台灣社群 search="title 2"; awk -v x="$search" '$0~x {print $0; getline; print $0}' test.txt 改這樣呢?