via Veronica Belmont
-
-
Linux: Finding Newer Files [OR How To Create A Patch File]
The linux `find` command is very powerful, it has tonnes of switches and options that I’m not terribly familiar with. Even though I’ve been a LAMP developer for over 5 years, I don’t work on the command-line too often. Yesterday I ran into a problem that I had never tried to resolve before. I was working on a large project on a development server and I had some updates I wanted to push to the production server, but I had lost track of which files I had updated. I dug through the find manual for a few minutes and discovered the `-newer` flag, from man “File was modified more recently than file.” With this flag you can generate a list of files that are newer than a given file. If I set file to a file I knew had been updated before my last set of changes, I could pull a list of patch files.
find /path/to/project/ -newer /path/to/project/last-archive.tgz
After some more digging and trial and error I found the proper syntax for rolling up all these files into a nice little patch archive:
tar -czvf patch-20070321.tar `find /path/to/project/ -newer /path/to/project/last-archive.tgz -print`
-
Fix Firefox 3 URL Bar
Firefox 3 has an annoying new URL bar that takes up about 75px in screen real estate for each auto-completed URL. It’s referred to as richResults in about:config. In the previous beta releases you were able to manually add a preference to remove this feature. As of firefox 3 beta 4 (or maybe beta 3, i didn’t install that release) this no longer works for whatever reason.
If you prefer the old style urlbar, you need to install the oldbar extension. https://addons.mozilla.org/en-US/firefox/addon/6227
