Email the Author

You can use this page to email Marty McGowan about Shell Functions.

Please include an email address so the author can respond to your query

This message will be sent to Marty McGowan

This site is protected by reCAPTCHA and the Google  Privacy Policy and  Terms of Service apply.

About the Book

In 8 Chapters, you are taken through the steps to write your first shell functions.  You will learn how to capture your command history and turn any of your commands into shell functions.   Presumably, you have commands and command sequences which you use more often, and could use a simpler format.  By the time you have finished this introduction to shell functions, you will be able to collect, save, and re-use those functions in your daily routine, as if they were built-in commands.

The examples here have been tested in the bash shell, and are allegedly compatible with ksh.

Here is the Chapter list:

  • Write a shell function
  • Use functions arguments
  • Inspect a function body
  • Loop with foreach
  • A brief history of shell commands
  • Semantic comments
  • Collect, save and re-use functions
  • What's next?

The first and last chapters are available in the free Sample.

The last chapter points at future topics.   I've quite a bit of work already for those future subjects.  In this book, I look forward to reader review and criticism to make this generally accessible for the widest audience of shell programmers.

Since the sales figures just past a personal goal, the price has been adjusted.   I have an appendix in the works.   For those who have a copy, i'll be looking at the discount feature to give you incentive to come back.    Contact me to give suggestions if you have a copy and would like to comment.


About the Author

Marty McGowan’s avatar Marty McGowan

The Shell has been my programming interest for over three decades.  

In the last decade, I've honed the practice of shell funcitons.   I started this in the early- mid-90s, with my first creation, a shell function library I notoriusly named Hennies,  after the recently departed Henny Youngman, since "You've got to be a one-liner to get in here"

A list of stops on my education and career:

  • S.B from MIT in Mechanical Engineering
  • Intelligence analyst for the NSA
  • Fortran programmer in NORAD's Cheyenne Mountain
  • where i "discovered" Unix on 1/15/1979 in Palo Alto
  • Unix software Test
  • Bell Labs MTS and systems engineer 
  • Voting member of IEEE's POSIX (O/S) standard
  • Unix Verification testing
  • US Patent Holder -- Wireless Information Systems -- 5559520
  • High School math and computer instructor
  • Tech Trainier for Wall St financial services firm

Logo white 96 67 2x

Publish Early, Publish Often

  • Path
  • There are many paths, but the one you're on right now on Leanpub is:
  • Shellfunctions › Email Author › New
    • READERS
    • Newsletters
    • Weekly Sale
    • Monthly Sale
    • Store
    • Home
    • Redeem a Token
    • Search
    • Support
    • Leanpub FAQ
    • Leanpub Author FAQ
    • Search our Help Center
    • How to Contact Us
    • FRONTMATTER PODCAST
    • Featured Episode
    • Episode List
    • MEMBERSHIPS
    • Reader Memberships
    • Department Reader Memberships
    • Author Memberships
    • Your Membership
    • COMPANY
    • About
    • About Leanpub
    • Blog
    • Contact
    • Press
    • Essays
    • AI Services
    • Imagine a world...
    • Manifesto
    • More
    • Partner Program
    • Causes
    • Accessibility
    • AUTHORS
    • Write and Publish on Leanpub
    • Create a Book
    • Create a Bundle
    • Create a Course
    • Create a Track
    • Testimonials
    • Why Leanpub
    • Services
    • TranslateAI
    • TranslateWord
    • TranslateEPUB
    • PublishWord
    • Publish on Amazon
    • CourseAI
    • GlobalAuthor
    • Marketing Packages
    • IndexAI
    • Author Newsletter
    • The Leanpub Author Update
    • Author Support
    • Author Help Center
    • Leanpub Authors Forum
    • The Leanpub Manual
    • Supported Languages
    • The LFM Manual
    • Markua Manual
    • API Docs
    • Organizations
    • Learn More
    • Sign Up
    • LEGAL
    • Terms of Service
    • Copyright Policy
    • Privacy Policy
    • Refund Policy

*   *   *

Leanpub is copyright © 2010-2025 Ruboss Technology Corp.
All rights reserved.

This site is protected by reCAPTCHA
and the Google  Privacy Policy and  Terms of Service apply.

Leanpub requires cookies in order to provide you the best experience. Dismiss