I want to print next line of matching word with sed.
I tried this command but it gives error :
sed -n \'// { N p}/\' test.x
use awk
awk '/pattern/{getline;print}' file