The script is already solved on other forum. awk 'BEGIN{RS="\n}";FS="if"} !/function codecs/{ for(i=1;i<=NF;i++){ if($i~/mandriva/){ m=split($i,u,"\n") for(j=2;j<=m;j++) if(u[j]~/urpmi/){print "-->"u[j]} } } }' file -- View this message in context: http://old.nabble.com/Help-with-sed-tp28264280p28279013.html Sent from the Gnu - Bash mailing list archive at Nabble.com.
- Help with sed Radim
- Re: Help with sed Radim
- Re: Help with sed William Park
- Re: Help with sed Chris F.A. Johnson
- Re: Help with sed Chet Ramey
- Re: Help with sed Radim