http://www.unix.com – Hi forum, I need help .. I need to extract from the log file logfile.log all the rows between the tags "<SOAP-ENV: Envelope" "</ SOAP-ENV: Envelope>" and that contain a certain <idPrescrizione> 0FXTN091GI </ idPrescrizione> . Within logfile.log there could be more 'occurrences of the same Some more 'experienced than me' with awk or sed could direct me on how to do? Tnk Pier logfile.log Code: <idModulo>030061211118838</idModulo> <dataPrenotazione& (HowTos)