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
what about grep -e -A 1 regex? It will print line below regex.
grep -e -A 1
With sed, looking for pattern "dd", below works fine as you would:
sed -n '/dd/ {n;p}' file
For file content:
dd aa ss aa
It prints:
aa