I am a cloud application architect with 10 years' experience in software development in several languages, including Perl, Java and C#. I'm an Irishman living in Calgary, Canada. GitHub on @cubikca.
Location
Calgary, Canada
Education
BSc. Computing and Info Systems, Athabasca University
These were some uses of sed I wasn't aware of, thanks. Still, the true power of sed must be acknowledged to be its replacement capabilities using regular expressions. For example, search and replace within a directory:
These were some uses of sed I wasn't aware of, thanks. Still, the true power of sed must be acknowledged to be its replacement capabilities using regular expressions. For example, search and replace within a directory:
find . -name \*.js -exec cat {} | sed -e 's#replaceme#replacement#g' > output.txt
That's right. I'll cover some use cases of string/pattern substitution in Part 2.