This question already has an answer here:

I have many files under the current directory.

Each file contains copyrights headers like,

    # Copyright 2013 Company, Inc. All rights reserved. This software
    # is property of Company, Inc and contains trade secrets,

I want to replace Copyright 2013 Company by Copyright 2014 Company

How can I do that?

I tried:

find . -type f -exec sed -r -i "/Copyright\/ 2014\/ Company/d" {} +

marked as duplicate by jasonwryan, Michael Mrozek Sep 30 '14 at 7:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



find . -type f -exec sed -r -i "s/Copyright 2013 Company/Copyright 2014 Company/g" {} \;

Not the answer you're looking for? Browse other questions tagged or ask your own question.