Skip to content

Instantly share code, notes, and snippets.

@0m3r
Last active January 23, 2020 11:11
Show Gist options
  • Save 0m3r/e7653bacb4ed32e651c04047b354dbdb to your computer and use it in GitHub Desktop.
Save 0m3r/e7653bacb4ed32e651c04047b354dbdb to your computer and use it in GitHub Desktop.
Find modified files in package and save diff

How to Find Recently Modified Files/Folders in Linux

state ./vendor/swissup/module-pagespeed/composer.json 
find ./vendor/swissup/module-pagespeed/ -type f -mtime -50 -ls
...
1706938   16 -rw-rw-rw-   1 www-data www-data    13931 Dec 12 13:59 ./vendor/swissup/module-pagespeed/Helper/Config.php

Download original

curl https://raw.githubusercontent.com/swissup/module-pagespeed/1.3.6/Helper/Config.php?token= -o Config.php.origin

Get diff and save

git diff Config.php.origin Config.php > Config.php.diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment