[CentOS] awk global replacement only after keyword
Joseph L. Casale
jcasale at activenetwerx.comFri Mar 26 02:22:42 UTC 2010
- Previous message: [CentOS] awk global replacement only after keyword
- Next message: [CentOS] awk global replacement only after keyword
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>Can you use a regexp like: >s/\(known_part\)\(.*\)\(change_part\)/\1\2replace_part/ Unless I misunderstand that, I'd say no. The actual file might look this: /begin file foo bar{ biz service-one baz service-two } --many more of that-- # comment fiz bir{ aaa service-one bbb service-two } /end file So only after the "# comment", I want to then start replacing. I am just trying to replace a very ugly long set of commands piped into each other that I am using now. Thanks! jlc
- Previous message: [CentOS] awk global replacement only after keyword
- Next message: [CentOS] awk global replacement only after keyword
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list