Negative Search AND Delete Directory NOT Containing Certain Files
find . -mindepth 1 -maxdepth 3 -type d -not -exec sh -c ‘ls -1 “{}” | egrep -iq “mkv|iso$”‘ \; -exec rm -rv {} +
Read MorePosted by Jay Luong | Nov 4, 2020 | Networking |
find . -mindepth 1 -maxdepth 3 -type d -not -exec sh -c ‘ls -1 “{}” | egrep -iq “mkv|iso$”‘ \; -exec rm -rv {} +
Read MorePosted by Jay Luong | May 13, 2020 | Networking |
For those who are stuck with running cron jobs with Ruby scripts. The non-interactive shell “bash -lc” might not work. The sure shot way is to just export your path in the job itself. You might be getting errors like...
Read MorePosted by Jay Luong | May 8, 2020 | Networking |
Sometimes Docker’s networking acts funky. I had the following error while using docker-compose with a ruby:2.7.1-alpine3.11 image. RUN apk add –update –no-cache curl fetch...
Read MorePosted by Jay Luong | Apr 9, 2020 | Networking |
If you’re running MySQL 5.7.5 or higher, you might’ve seen this error while trying...
Read MorePosted by Jay Luong | Apr 3, 2020 | Networking |
There are headaches and heavy costs associated with hypervisor virtualization. There was a time I...
Read More
Recent Comments