I'm trying to automatically replace some Copyright string in files. The string is is following format
"Copyright (C) 2004-2008 by"
but years can differ. I try to find this lines in all files and replace the last year with current.
grep -r ' * Copyright (C) [0-9]\{4\}-[0-9]\{4\} by.' *
Now how can I replace the last group found with 2013? (Want to use from pipe)