A reader writes in to report that Accuweather has changed their Web page layout and the shell script from Wicked Cool Shell Scripts that returns the weather forecast (script #63, weather.sh), is broken.
A reader writes in to report that Accuweather has changed their Web page layout and the shell script from Wicked Cool Shell Scripts that returns the weather forecast (script #63, weather.sh), is broken.
If you find yourself working on the command line and need to whip out a quick statistical analysis or two, you’ll be glad to know that Wicked Cool Shell Scripts fan Josh Kotecha has sent in a very nice little shell script that does just that using the scriptbc script included in the book.
Another hiccup in a script included in Wicked Cool Shell Scripts, one that’s a subtle problem because it sometimes occurs because of a user-set LS_OPTIONS flag. Script #37, bestcompress, has the following sequence:
smallest="$(ls -l "$name" $Zout $gzout $bzout | \
awk '{print $5"="NR}' | sort -n | cut -d= -f2 | head -1)"
A reader of my new book Wicked Cool Shell Scripts pointed out that the capability of testing a file permission with find using the ‘+’ notation is GNU-specific.
A friend writes:
I’m finding that some number of people are hosting my Janet Jackson
“movie” by simply linking it in from their sites, meaning *I* get to
pay for the bandwidth. Is there some way to prevent this?
I’ve been discussing the key tasks that a Mac OS X user has to run to ensure that their system stays healthy and in tip-top shape, and one set that we’ve all agreed upon are the daily, weekly and monthly cron jobs. You can figure out when they’re run with a simple grep command.