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 3)

Linux Shell Script Programming

Copy and Paste from the Mac OS X Command Line?

January 3, 2012 / Dave Taylor / Linux Help, Linux Shell Script Programming, Mac & MacOS Help / 1 Comment

I am constantly running commands in Terminal.app on my MacBook and then copying and pasting the results into email messages or documents. Yes, I’m a tech writer. What I’m wondering is if there’s any way to actually copy and past into the Mac system wide copy/paste buffer directly from the command line?

View Answer »

Script to test line lengths for Twitter compatibility?

November 21, 2011 / Dave Taylor / Linux Shell Script Programming, Mac & MacOS Help / 3 Comments

I’ve been tasked with writing a series of tweets for a Black Friday marketing campaign and am finding it a bit tricky because I don’t know how to easily check line length for a long series of lines. I’m on a Mac and can get around in Terminal. Is there some script you can share with me to check this, Dave?

View Answer »

Shell script to convert lowercase to title case?

March 14, 2011 / Dave Taylor / Linux Help, Linux Shell Script Programming / 3 Comments

As part of a project I’m working on, I find myself deep in a Linux shell script, needing to have a subroutine that converts a sentence of all lowercase to title case. You know, from “this is a test case” to “This is a Test Case”. Not every word, just the right ones. Doable?

View Answer »

Can I script renaming files based on an XML data map?

November 3, 2010 / Dave Taylor / Linux Help, Linux Shell Script Programming / No Comments

I have a folder full of files which are named with four digits and a file extension e.g. 0312.file and an XML-file describing the contents of these files. I am trying to do a shell scipt that will create folders and rename these files according to the xml, but I don’t know how?
This is a template of what the xml looks like:
<section label=”AA. category”>
<children label=”topic” source=”AABB.file” />
</ section>
The script should represent the categories as folders containing the related topics, which should be represented as filenames.

View Answer »

Test for valid numbers in a Bash shell script?

October 25, 2010 / Dave Taylor / Linux Help, Linux Shell Script Programming / No Comments

In a different discussion on this site [see Redirecting input in a shell script] a visitor commented that “I was too busy trying to make sure the above post made sense that I forgot to ask for help. If you can, please post examples of how I can make the second argument a requirement and evaluate if it is a number. Thank you in advance!”

View Answer »

Can I sequentially rename files in Linux?

June 18, 2010 / Dave Taylor / Linux Help, Linux Shell Script Programming, Mac & MacOS Help / 3 Comments

As part of some user interface testing I’m involved with on an Ubuntu Linux system, I find myself frequently having to rename groups of files in a sequential manner. That is, I’ll have files like “output mm-dd-yyyy at hh:mm:ss” and need to rename them to “testrun-xx-file-yy”. Is there any way to automate this so I don’t have to go crazy typing?

View Answer »

Why is shell script programming so fun?

March 9, 2010 / Dave Taylor / Linux Shell Script Programming / 2 Comments

Dave, can you tell me, how come I enjoy shell programming more than other types of programming (Javascript, Java or C)?

View Answer »

How can I keep a compressed Linux archive up to date?

August 29, 2009 / Dave Taylor / Linux Help, Linux Shell Script Programming / 2 Comments

We have a situation where we need to keep a ZIP archive of some data files available on our Ubuntu Linux server so that our satellite offices can grab the information through slower data lines. Problem is, the underlying files change 2-3 times a day. What’s a quick, efficient way to only rebuild the ZIP archive file on our Linux system if a file’s changed, but leave it as-is if everything’s stayed the same?

View Answer »

‹12345›»

Search

Recent Posts

  • How Can I Have an iPhone Light Flash on Phone Calls?
  • Guide to Setting Up Gmail for Offline Use (Just In Case)
  • Can I Fill Out & Sign PDFs on my Chromebook?
  • How Can I Get Pinch to Zoom Working on my MacBook Air?
  • How to Save Phone Battery Life with Adaptive Connectivity?

On My YouTube Channel

Motorola Edge 2022 Android Smartphone -- DEMO & REVIEW

1More Sonoflow Hi-Res Audio Headphones -- DEMO & REVIEW

Categories

  • AdSense, AdWords, and PPC Help (106)
  • Amazon, eBay, and Online Shopping Help (164)
  • Android Help (230)
  • Apple iPad Help (150)
  • Apple Watch Help (53)
  • Articles, Tutorials, and Reviews (346)
  • Auto Tech Help (17)
  • Business Advice (200)
  • ChromeOS Help (35)
  • Computer & Internet Basics (783)
  • d) None of the Above (166)
  • Facebook Help (384)
  • Google, Chrome & Gmail Help (189)
  • HTML & Web Page Design (247)
  • Instagram Help (49)
  • iPhone & iOS Help (628)
  • 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