Industry guru Dave Taylor answers questions about a wide variety of technical topics, including HTML, online advertising, Cascading Style Sheets, Web design, Unix, Linux, search engine optimization, Mac OS X, shell script programming and Microsoft Windows.

Articles about "scripting"



Can I capture Google searches on my site?

I see you've posted articles explaining how to put a Google Search Box and Search Results on a website. (see add Google search to your site). But is it possible to be able to store the search phrases typed into...

Continue reading about Can I capture Google searches on my site?

How many Friday the 13ths are there in a given year?

I'm studying Unix, and i need help writing a script. The script requires that it outputs the number of months and years from January 2007 to December 2017 inclusive that have a Friday the thirteenth....

Continue reading about How many Friday the 13ths are there in a given year?

Bug in shell script using awk to read /etc/passwd?

In your book Wicked Cool Shell Scripts, on p. 115, Script #40 Reporting Disk Hogs, on the 8th line the second part of the line reads:     awk -F: '$2 > 99 {print $1} ') I am very new...

Continue reading about Bug in shell script using awk to read /etc/passwd?

How do I compare float / real numbers in a shell script?

Hi i am trying to comapre numbers for the biggest among double type of numbers. For example: 0.254, 0.255, 0.564, 0.984, 0.556, 0.6566, and 0.5666. I'm using the following script code: if [ $max -lt $i ] if [ "$max...

Continue reading about How do I compare float / real numbers in a shell script?


Advanced Search :: Ask Dave Taylor!


Match case   Search using regular expressions
Search: Entries Comments Both
Sort By:
Sort Order:
Search entries from:
Maximum results shown:


Need Help? Ask Dave Taylor!
Search