
The box arrived from NoStarch Press and ...
It's a good book. Check it out!
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon
Categorized:
The Writing Business
(Article 3676)
Tagged: Previous: Including Word files on your Web site Next: Weird Internet Explorer 6 hiccups Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader. In script #7 under MacOS 10.2.8; I get a cut error: [home:~/scripts] smac% valid-date november 25 1963 It appears that its taking the second field for the month, I've verified that normdate works properly: [home:~/scripts] smac% normdate november 25 1963 ... and I freely admit that I'm a clueless puppy trying to learn scripting by doing. Help? :) smac Posted by: Steve Macdonald at March 18, 2004 10:33 AMAs you reported to me in email, your problem was that you'd copied the cut statements like this: month="$(echo $newdate | cut -d\ -f1)" The problem is that you need TWO spaces after the backslash. Fix that, and it works fine. :-) Posted by: Dave T. at March 19, 2004 11:57 PMAm very interested in your book after seeing you on the Screen Savers last night (4/19/04). I tried the bestcompress script but it looks like I'm getting incorrect results. I'm running it on a 7767 txt file and it reports compress as the best choice resulting in a compressed file size of 4493. If however I run gzip and bzip2 on the txt file I get file sizes of 3715 and 3559 respectively. So it dosen't appear that compress is the best choice and bestcompress is not comparing the file sizes correctly. ??? Posted by: Dennis Brunskill at April 20, 2004 1:10 PMThanks for your note, Dennis. You're correct: it turns out that by default the ls command wants to sort filenames alphabetically, which turns out to be a problem with this particular script. The good news is that it's super easy to fix: instead of using "ls -l" in this script use "ls -lf" instead. There's a more detailed explanation on the main page of the booktalk weblog... Posted by: Dave Taylor at April 25, 2004 11:32 PMI have a lot to say, but ...
I do have a comment, now that you mention it!
|
![]()
Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Join the List!
Book Links
|