#92: zip command exclude .svn directories
Solved!
I am looking for the command line incantation for zip to package up a .zip file but exclude any .svn metadata directories and files. I used --exclude=.svn/* but it doesn't seem to work.
#51: Broken shell command substitution in crontab
Solved!
In a cronjob, I want to execute a date sub-command and substitute the results in place into the overall shell command. Something like:
1 5 * * * bash -c 'cp /foo/bar /foo/bar.$(date +%Y%m%d).sql'
Unfortunately, this breaks with an error at runtime:
/bin...
#12: Find all words that end in...
Given a list of words in a text file, one word per line (such as, /usr/share/dict/words on OS X) there should be a quick way to find all words that end in a substring.
Example:
Find all words that end in "me"
assume
consume
presume
...