Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove copyright updates from Magento 1 patch file
tac CE- | sed '/+ \* @copyright/{n;N;N;N;N;N;N;d;}' |sed '/+\/\/ @copyright/{n;N;N;N;N;N;N;d;}'| tac | sed '/+ \* @copyright/{N;N;N;N;N;d;}' | sed '/+\/\/ @copyright/{N;N;N;N;N;d;}'> CE-actual.diff
Copy link

fooman commented Jan 29, 2020

Removes about 6MB from the patch file that is just updating the copyright line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment