Execute a Perl code without ".pl" extension
July 28th, 2016How to execute perl without having to type the .pl extension
For Windows you'll need to add ";.pl" to the PATHEXT environment variable. (given that the .pl extension is associated with the perl executable, which is always the case with a normal Active Perl installation.)
Ford Part Numbering Chart
July 28th, 2016Ford Part Numbering Chart
How to Make Pasta in the Microwave
July 28th, 2016- Get a microwave safe bowl and add 1/2 cup to 1 cup of pasta of your choice.
- Add water to the bowl so the pasta is a couple of inches deep. Remember that the pasta will grow in size, so be sure to have enough water. You can always drain out the extra if you add too much.
- Place the bowl on top of a plate and put it in the microwave just in case any water spills over.
- Take the suggested cooking time from the pasta box and add 3-4 minutes. Check on the pasta when it's done and sample a piece or two.
- If the pasta is at desired doneness, strain the pasta over the sink. If it’s not at desired doneness just put in the microwave for a few more minutes.
find - exec rm vs -delete
July 28th, 2016Explanation of the differences between find 'exec rm' and 'delete' options.
How to use the find command to search for multiple extensions
July 28th, 2016find . -name '*.jpg' -o -name '*.png'
find . -mtime -7 \( '*.jpg' -o -name '*.png' \) # all .jpg or .png images modified in the past week
find -regex '.*\.\(jpg\|png\)'
find -regextype posix-extended -regex '.*\.(jpg|png)'
find -E . -regex '.*\.(jpg|png)'
