I was in a pinch. I needed to import 12.000+ files with different filetypes into a Wordpress Media Library. The easy part, uploading the files with the folder structure to wp-content/uploads was done quickly, but Wordpress Media Library didn’t “see” the files. After some quick reading I found out that...
How to manage several SSH Config files on Mac and Linux (quick-note)
Use the Include directive to include an external config file in the main (default) ssh config file. Create another config file as usual.Add the following line at the beginning of your ~/.ssh/config for example, if we have a config file in ~/Documents/.ssh/config add Include ~/Documents/.ssh/config in your main ~/.ssh/config What...
How to find files using Regex (Regular Expressions) in GNU/Linux and MacOs command line and do something.
I needed to find all the files that matched a regular expression. In this case all the files that had either 300x200 or 400x220 and where either png or jpg files. You can do that pretty easily in BASH using find but the more filetypes and conditions the longer the...