Finding text in files in a folder
Quite often I find myself looking for files which contain the same text. Mainly config settings, etc. On linux you can use this: find ./ -type f -exec grep -l…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
Quite often I find myself looking for files which contain the same text. Mainly config settings, etc. On linux you can use this: find ./ -type f -exec grep -l…
Finding files is a little different to MS DOS! find <startlocation> <type> <filename> <exec> The exec is a simple way of performing functions on the results. If you leave it…
I have an external USB HDD and I like to keep it synchronised with my desktop for backup reasons. I find the easiest way to do this, is to use…
Learning MacOS recently, and couldn’t find some hidden files, i.e. .htaccess To fix this, easy. Open Terminal, and paste the following in (both lines together), and press enter. Done. defaults…
Just a note, when you update the permissions of a file: chmod +777 somefile.txt This change will only last as long as the session is logged in, i.e. once you…