Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove copyright updates from Magento 1 patch file
tac CE-1.9.4.3-1.9.4.4-2020-01-28-04-51-47.diff | 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
@fooman
Copy link
Author

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