0

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" {} +
2

Try:

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.