Ask Dave Taylor
  • Facebook
  • Instagram
  • Linkedin
  • Pinterest
  • Twitter
  • YouTube
  • Home
  • YouTube Videos
  • Top Categories
  • Subscribe via Email
  • Ask A Question
  • Meet Dave
  • Home
  • Linux Shell Script Programming (Page 10)

Linux Shell Script Programming

Can I list my iTunes Library by number of albums?

November 16, 2004 / Dave Taylor / Linux Shell Script Programming, Mac & MacOS Help / 11 Comments

I’ve spent a lot of time poking around with my extensive iTunes database and had lots of fun figuring out different ways to address my needs with a fully digitized music collection. When a reader asked whether there was a way to just list those artists in her iTunes collection for whom she had more than one album, I thought “ah, this sounds up my alley”, and so it is.

View Answer »

Can I track an RSS feed with a shell script?

November 15, 2004 / Dave Taylor / Linux Shell Script Programming, Wordpress Help / 6 Comments

More than once, readers have written to me, asking if it was possible to track an RSS feed from a Weblog or news site with a shell script. Sounds kinda wacky, but in fact, it’s a very good use of a shell script, as the following rather extensive entry — including source code! — demonstrates. If you’re a bit confused by the following, you might want to consider picking up a copy of my best-selling Wicked Cool Shell Scripts.

View Answer »

How do I create a group-based disk usage script?

November 4, 2004 / Dave Taylor / Linux Shell Script Programming / 6 Comments

A reader writes:

“I’ve been reading your book Teach Yourself Unix in 24 Hours and learning a lot, but I’m stuck on a disk usage problem. Suppose there are 5 people (A, B, C, D, E) in our group
and they share the same directory called “group.” The total capacity of this
directory is 100 GB. I’m looking for a program/command/script that can be
run to generate the following space usage update:

A    5         5%
B   10        10%
C   20        20%
D   40        40%
E    5         5%
total  80        80%
free space     20%

This is an interesting question, so let’s dig into it and see what we can figure out…

View Answer »

How do I create a shell script on a Macintosh?

October 7, 2004 / Dave Taylor / Linux Shell Script Programming, Mac & MacOS Help / 21 Comments

A reader writes:

I’ve started to go through your shell script book Wicked Cool Shell Scripts but there is still something I’m unclear on. I’m showing my ignorance here, but how
exactly do you save a shell script so you can use it later?”

View Answer »

Tweaking FTP scripts to fine-tune their behavior

September 8, 2004 / Dave Taylor / Linux Shell Script Programming / No Comments

A reader writes:

I have your Wicked Cool book and love it. I am new at scripting and it is helping a ton. Question. I need a script to use the timestamp feature (ingenious by the way) of Script #83 but “get” the files from a remote server like Script #82. Do you have one modified in such a way?

View Answer »

Where can I get free tips about Linux shell script programming?

September 2, 2004 / Dave Taylor / Linux Shell Script Programming / 4 Comments

It’s not uncommon for me to receive email from people asking for information that’s covered in one or more of my books, and this morning I received a message asking about good places to go online to learn more about shell script programming. My answer, of course, is to buy a copy of my best selling book Wicked Cool Shell Scripts, but if that’s not in your budget, there’s another possibility to explore.

View Answer »

Extracting the correct column with “ps” and “awk”

August 16, 2004 / Dave Taylor / Linux Shell Script Programming / 4 Comments

A reader writes:

Every *nix implementation is different. But I’m seeing some some shared behavior between HPUX and Solaris with script #52 Killing Processes by Name. The problem is that the script is trying to kill the “tty” name, instead of the pid.

Wish I understood the following line better so I could make it grab the right columns. :-\

pids=$(ps cu -U $user | awk “/ $1$/ { print \$2 }”)

View Answer »

Extracting Directory Names within a Shell Script

August 11, 2004 / Dave Taylor / Linux Shell Script Programming / 3 Comments

A reader writes:

First, thanks for writing Wicked Cool Shell Scripts. I’ve found them quite useful and I’ve learned many things from those scripts.
I just have a question and I was wondering if you could point me in the right direction.

I’m trying to write a shell script that will pull the top-level directories out of a list of file paths, example:

list of files:
/usr/local/test
/usr/bin/test
/opt/Tivoli/dat
/opt/lib/test
/tmp/files/test
/tmp/local/test

Output after script:
/usr
/opt
/tmp

View Answer »

«‹89101112›»

Search

Recent Posts

  • How Do I Change the Ringtone Volume on my Pixel Phone?
  • Important Google Chrome Ad Privacy Updates and Settings
  • How to Copy Photos from a Digital Camera to a Mac System
  • How to Play Sudoku on an Ubuntu Linux Computer
  • How to Connect to Xfinitywifi Internet from Windows 10
  • Step-by-Step: How to Add a Second User Account to a Chromebook
  • How Can I Change or Add Favorites to Apple Maps?
  • Getting Started with WordPad Replacement LibreOffice Writer

On My YouTube Channel

ZEERA MagSafe iPhone Kickstand Case -- REVIEW

XGIMI Horizon Ultra 4K Video Projector -- REVIEW

Categories

  • AdSense, AdWords, and PPC Help (106)
  • Alexa, Kindle, and Nook Help (103)
  • Amazon, eBay, and Online Shopping Help (166)
  • Android Help (242)
  • Apple iPad Help (151)
  • Apple Watch & Smartwatch Help (56)
  • Articles, Tutorials, and Reviews (347)
  • Auto Tech Help (21)
  • Business Advice (201)
  • Chromebook & ChromeOS Help (48)
  • Computer & Internet Basics (797)
  • d) None of the Above (166)
  • Facebook Help (386)
  • Google, Chrome & Gmail Help (199)
  • HTML & Web Page Design (248)
  • Instagram & Threads Help (53)
  • iPhone & iOS Help (643)
  • iPod & MP3 Player Help (173)
  • LinkedIn Help (90)
  • Linux Help (179)
  • Linux Shell Script Programming (90)
  • Mac & MacOS Help (935)
  • Most Popular (16)
  • Outlook & Office 365 Help (41)
  • PayPal Help (68)
  • Pinterest Help (54)
  • Reddit Help (21)
  • SEO & Marketing (82)
  • Spam, Scams & Security (102)
  • Trade Show News & Updates (23)
  • Twitter Help (225)
  • Video Game Tips (66)
  • Web Site Traffic Tips (62)
  • Windows PC Help (981)
  • Wordpress Help (206)
  • Writing and Publishing (72)
  • YouTube Help (47)
  • YouTube Video Reviews (159)
  • Zoom, Skype & Video Chat Help (66)

Archives

Find Me On the Socials…

Ask Dave Taylor

Follow Me on Pinterest
Follow me on X/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