by vegardhanssen | Oct 22, 2014 | Linux
Had to help a friend which was moving his site from an “ancient” php version to a new one, where you have to change all the <? to <?php. This had to be done on all sub directories, and only on .html and .php files. I felt a one-liner tingling in my...
by vegardhanssen | Oct 21, 2014 | Linux
I needed to list all the files in a directory which had a lot of files, actually 4060276 to be exact. Usually I do this with ls or find, but with ls it used over 600 MB memory, and a lot of time. So I set out to find a better way of doing this. I found a post...
Recent Comments