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" {} +
Anthon
  • 79,293
Ashok
  • 3

1 Answers1

2

Try:

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

Isaac
  • 392