[ad_1]
To get everything between two pattern you can use this sed command:
sed -n '/.* id:.*/,/.* uid:.*/p' log.txt
And you’ll get
-- Request --
some content
....
-- Response --
....
where
-nsuppresses automatic printing of pattern space
pprints the current pattern space
1
[ad_2]
solved Extract part of log file