Notice: Trying to access array offset on value of type bool in /home/customer/www/flogvit.com/public_html/wp-content/themes/Divi/includes/builder/functions.php on line 2442
Linux | Flogvit

Changing files in a directory structur

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...

List a directory with millions files on 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...
%d bloggers like this: