Ask Dave Taylor
  • Facebook
  • Instagram
  • Linkedin
  • Pinterest
  • Twitter
  • YouTube
  • Home
  • YouTube Videos
  • Top Categories
  • Subscribe via Email
  • Ask A Question
  • Meet Dave

Another approach to working with “awk”

August 6, 2004 / Dave Taylor / Linux Shell Script Programming / No Comments

A reader writes in with the following note:

I’ve just picked up your book Wicked Cool Shell Scripts, and there are a lot of nifty things in
it. I too have accumulated a lot of things generally in small scripts
or more frequently in bourne/bash functions. I was particularly tickled
to see a lot of very similar code, one such that jumped out at me was
your gmk function in one script (I called mine kmg).

Would you be interested in some constructive criticism?

In script #52 Killing Processes by Name, I think that instead of:

  awk “/ $1$/{ print \$2 }”
you might consider using

  awk “$NF==”$1″ { print \$2 }”

That way, you’re not dependent on whitespace.

View Answer »

Where’s this NotePad application?

July 29, 2004 / Dave Taylor / Windows PC Help / 5 Comments

A reader sent me the following question:

“I recently purchased your book Creating Cool Websites with html, xhtml, and css. When I arrived to chapter 2 and you said to go to note pad, I followed your instuctions and I couldn’t find it. So I went to run and typed in notepad and BAM! it pulled up.

You say to save it to your desktop, if I do that will the program always run from there? Should I seek out a tech to move the program to where you said I should of found it. “

View Answer »

How to use Apache htaccess to password protect a directory

July 28, 2004 / Dave Taylor / HTML & Web Page Design / 1 Comment

In a rather lengthy email message, a reader writes to me that:

I am following your book Creating Cool Web Sites with HTML, XHTML and CSS and am trying to protect a subdirectory on my website. The following is the .htaccess code

AuthUserFile /www.bvg.us/uswholesale/uspasswords/passwords.txt
AuthGroupFile /dev/null
AuthName "Please enter your login name and password"
AuthType Basic
<Limit GET>
require user weiyang
require user annawei
</Limit>

The “passwords.txt” reads

user weiyang:wy
user annawei:aw

By doing so, I can get the “log in” box but can not login with the info that I set. Could you help me on this?

View Answer »

Permission to reuse the Wicked Cool scripts

July 15, 2004 / Dave Taylor / Linux Shell Script Programming / No Comments

I have received a number of queries from people in the Unix/Linux community asking for the details of ownership and copyright for the scripts included in my best-selling Wicked Cool Shell Scripts. When I first started programming and distributing my works online (in the early 1980’s) no-one really worried about any of that and if the original author’s name stayed intact, we’d think that was a wonderful thing.

View Answer »

How do I do just incremental backups?

July 15, 2004 / Dave Taylor / Linux Shell Script Programming / No Comments

A reader writes:

“My question concerns backup.sh (script #56 in the book Wicked Cool Shell Scripts). I am a little confused how to set
up my directory list file INITIALLY to use for the backup script to work. Do
you have to do a -f (full backup) first, then I’m free to incrementally backup
as desired? Even then I’m only interested in backing some key directories not
my whole home space….”

View Answer »

Getting external style sheets to link properly

July 13, 2004 / Dave Taylor / HTML & Web Page Design / 2 Comments

A reader writes:

” On page 62 of Creating Cool HTML 4 Web Sites, the first line of code (<link type=”text/css” href=”mystyles.css” /> does not seem to work until I add ‘rel=stylesheet’. I’ve tried it out on both IE 6.0 and Netscape 7.x.”

View Answer »

Monetizing site searches with Google WebSearch

June 30, 2004 / Dave Taylor / AdSense, AdWords, and PPC Help / No Comments

If you’ve already signed up for Google Adsense, congrats. You’re smart and you’re probably finding out that pages and sites that have just been sitting around doing nothing are now generating a revenue stream for you. It’s possible that it’s enough for a latte every few days, but it might be more. Quite a bit more. I have colleagues who see “four figure days” with Adsense.

if you haven’t yet plugged in, then you’ll want to immediately read the article Partner with Google and Make Money!. Back? Good. Let’s talk about a whole new facet of Adsense that you can utilize to generate additional revenue from your site: search.

View Answer »

Get your containers right with CSS!

June 29, 2004 / Dave Taylor / HTML & Web Page Design / 1 Comment

I’ve been beating my head against the wall (proverbially, at least) with what should be a simple CSS style issue: I want to change the color and style of some text links on a Web page. I’ve been trying this:

<style type="text/css">
.bl              { color: #000; font-weight:900 }
.bl a:link       { color: #0f0; }
.bl a:visited    { color: #00f; }
.bl a:hover      { color: #000; background-color: #ff6 }
</style>
<a href="uses.shtml" class="bl">Google Adwords and Overture</a>

but it wasn’t working.

View Answer »

«‹783784785786787›»

Search

Recent Posts

  • How Can I Get Pinch to Zoom Working on my MacBook Air?
  • How to Save Phone Battery Life with Adaptive Connectivity?
  • Join the Microsoft Edge Beta Program, Get AI-Powered Bing!
  • Guide to Keeping All Your Mac Software Up-To-Date
  • How Can I Send My Friend a Voice Message via iMessage?

On My YouTube Channel

EKSA E1000WT 2.4Ghz Wireless Gaming Headset -- DEMO & REVIEW

Mophie PowerStation XL 20W USB-C Charger -- REVIEW

Categories

  • AdSense, AdWords, and PPC Help (106)
  • Amazon, eBay, and Online Shopping Help (164)
  • Android Help (230)
  • Apple iPad Help (149)
  • Apple Watch Help (53)
  • Articles, Tutorials, and Reviews (346)
  • Auto Tech Help (17)
  • Business Advice (200)
  • ChromeOS Help (34)
  • Computer & Internet Basics (783)
  • d) None of the Above (166)
  • Facebook Help (384)
  • Google, Chrome & Gmail Help (188)
  • HTML & Web Page Design (247)
  • Instagram Help (49)
  • iPhone & iOS Help (627)
  • iPod & MP3 Player Help (173)
  • Kindle & Nook Help (99)
  • LinkedIn Help (88)
  • Linux Help (174)
  • Linux Shell Script Programming (90)
  • Mac & MacOS Help (916)
  • Most Popular (16)
  • Outlook & Office 365 Help (34)
  • PayPal Help (68)
  • Pinterest Help (54)
  • Reddit Help (19)
  • SEO & Marketing (82)
  • Spam, Scams & Security (97)
  • Trade Show News & Updates (23)
  • Twitter Help (222)
  • Video Game Tips (66)
  • Web Site Traffic Tips (62)
  • Windows PC Help (953)
  • Wordpress Help (206)
  • Writing and Publishing (72)
  • YouTube Help (47)
  • YouTube Video Reviews (159)
  • Zoom, Skype & Video Chat Help (62)

Archives

Social Networks…

Ask Dave Taylor

Follow Me on Pinterest
Follow me on Twitter
Follow me on LinkedIn
Follow me on Instagram


AskDaveTaylor on Facebook

microsoft insider mvp


This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to our terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. Our lawyer says "Thanks for your cooperation."
© 2023 by Dave Taylor. "Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.
Privacy Policy - Terms and Conditions - Accessibility Policy