Sed Find and Replace
- by Vince
-
in Blog
-
Hits: 1873
While hunting through 15,000 lines of CSS, I wanted to find and replace some text. I thought it was going to be a simple task but there were numerous references and using 'find next' was getting tedious. I dropped to a command line and used sed to complete the task. Sed is a stream editor and the syntax is simple: