COP 2344
Shell Scripting

Shell Scripting course syllabus
View Weekly Course Schedule 

View Course Resources.

View Project 1 requirements.
View Project 2 requirements.
View Project 3 requirements.
View Project 4 requirements.
View Project 5 requirements.
View Project 6 requirements.
View Project 7 requirements.
View Project 8 requirements.

              Other interesting links:

Visit linux.die.net/man/ for searchable Linux man pages in HTML format,
docs.sum.com for searchable Solaris man pages and other Solaris documentation,
Visit the Tampa-St. Pete Linux User's Group (SLUG).  This group holds monthly meetings.
Most Unix and Linux software is actually GNU software (www.gnu.org), a project of the Free Software Foundation.
Download free Unix and Linux distributions from distrowatch.com.
Download The PuTTY suite of Internet tools: SSH, scp, sFTP, and others, from www.chiark.greenend.org.uk/~sgtatham/putty.
Download the WinSCP GUI wrapper for the PuTTY scp and sFTP tools from sourceforge.net/projects/winscp/.
Visit www.unix.org for the OpenGroup's Unix site, including the Single Unix Specification.
View Solaris certification FAQ and Oracle's Solaris Certification information, including Sun Certified System Administrator (SCSA) exam objectives part 1 and part2.
View Linux LPI certification and View LPI-1 exam objectives.

COP 2344 Syllabus

Spring 2016

Course policies
Time & Place: Ref No. 92787:  Monday & Wednesday, 7:30–8:45 PM, Dale Mabry Room DTEC–461
Instructor: Name:  Wayne Pollock
E-mail:  Internet:
Office & Phone:  DTEC–404, 253–7213
View my Office Hours.
Yahoo Instant Messenger IDwaynepollocklive
Skype ID:  wpollock@hccfl.edu     Click for IM:
Homepage URL:  https://wpollock.com/
   
Text: Stephen G. Kochan, Patrick Wood, Shell Programming in Unix, Linux and OS X: The Fourth Edition of Unix Shell Programming, (4th Ed.) ©2016 Addison-Wesley  ISBN:  978-0-13-449600-9.
Optional:  Hahn, Harley, Harley Hahn's Guide to Unix and Linux, ©2009 Harley Hahn, Pub. by McGraw-Hill.  ISBN # 978-0-07-313361-4.

HCC bookstore on-line

Description: (This course is 3 credit hours long.)  This course is intended for students who have mastered the basic Linux/Unix operating environment and who would like to read and understand the various administrative scripts, and to write scripts to automate day-to-day tasks.  This course is designed to teach students the skills they need to effectively read, write and debug shell scripts.  This course explores in detail the Bash shell scripting language.  Major topics covered include reading, writing, modifying, and debugging shell scripts, the shell environment, regular expressions, text filtering with grep, sed, and the awk commands, conditional control statements and loops, interactive scripts, the use of other shell features such as variables, parameters, argument lists, shell functions, shell traps.

The basic Unix/Linux environment is taught in the course CTS 1106 (Introduction to Unix / Linux).

Objectives: The student will demonstrate a knowledge of the following topics through objective tests, hands-on activities, and/or projects:
  1. Working with files:  Manipulate files including file permissions and umask, parsing files, working with temporary files.
  2. Working with directories:  Create directories, search for files, understand path names, navigate the file system.
  3. Programming constructs:  Employ the use of flow control using decisions and looping, create, modify and debug shell scripts both batch as well as interactive, use functions, command line argument processing, understand traps and signals, use read, streams, pipes, I/O redirection, and here documents, and understand and correctly use quoting, command grouping, wildcards, brace expansion, tilde substitution, command grouping and command substitution.
  4. Working with data:  parsing data, process email, manipulate strings, perform arithmetic operations, use filters such as grep, sed, awk, and python.
  5. Interacting with the shell:  Run background programs, customize and use the shell environment including history, prompting and shell options, use shell and the environment, aliases, source commands, configuration files, variables and export.
  6. Regular expression use and shell patterns.
  7. Using and writing man pages.
  8. Source code control using RCS.
Prerequisites: CTS 1106 (Introduction to Unix / Linux), or permission of the instructor.  Students enrolled in a degree or college credit certificate program program must complete all prerequisites.  Note!  HCC registration computers may not check for prerequisites before allowing you to enroll.  Be certain you have all required prerequisites or you won't have much of a chance of success.  Also you may be dropped from the class.
Facilities: Assignments must be completed on YborStudent.hccfl.edu (a Linux server), which can be accessed from on or off campus using any ssh capable terminal emulator such as PuTTY.  (Your user ID and password will be provided in class, along with instructions on how to use this.)  From off-campus, you can practice using any Unix/Linux system available (or install Unix or Linux at home).

You will need your own flash disk (preferably USB-3 compliant), writing materials, and Scantron 882–E or 882–ES forms.

You can use HawkNet (WebAdvisor) to obtain your final grade for the course.  You can use your assigned Hawkmail (Hawkmail365) email address if you wish to discuss your grades via email.  (Note, it may be possible to setup your Hawkmail account to forward all received emails to some outside email account; but you still must send mail from Hawkmail to discuss grades.)

Most college systems use a single sign-on user ID, known as HCC “NetID”.  Visit netid.hccfl.edu to register and to update your credentials.  (Your initial password is your uppercase first name initial, lowercase last name initial, and your seven digit student ID number.)  Note the quickest way to resolve login issues is the HCC Live Web Portal (hcclive.hccfl.edu).

The college provides wireless network connections for students and guests on Dale Mabry campus.  For students, select the network “HCC_Wireless” from the list of available networks.  Follow the on-screen steps by entering your HCC email address and network password.  For HCC guests: Select “HCC_Guest” from available networks.  Follow the on-screen steps to complete registration.  This network will be available between 7:00 AM and 10:00 PM.  These are the only official HCC networks; don't use others that may appear.

Hawk Alert text messaging service allows you to receive important information regarding campus closures or emergencies.  You may also sign up for financial aid notifications and registration and payment deadlines.  This is a free service, although some fees may be applied by your cellular service provider or plan for text messages.  To sign up, or for more information, visit www.hccfl.edu/hawkalert/.

HCC's Student Assistance Program (SAP) offers resources tailored to student life, providing you with the right tools to help you through some of life's toughest challenges.  The college has contracted Baycare Health Management to provide free, professional, confidential counseling by telephone and in person.  A wide range of topics may be addressed through this program, including mental health counseling, budgeting, and financial concerns.  Please call 800-878-5470 or send email to baycaresap@baycare.org for further information.

HCC DM Open Lab
Computers are located in the computer science department open lab in DTEC–462.  Lab hours are:

Dale Mabry campus open lab hours
Monday – Thursday8:00 AM to 10:00 PM
Friday 8:00 AM to 4:30 PM
Saturday 8:00 AM to 4:30 PM
Grading:
Grading Policy
Projects (about 8): 50%
3 equally weighted closed-book multiple choice exams     50%
Classroom participation: +5%

Grading scale:  A=90-100,   B=80-89,   C=70-79,   D=65-69,   F=0-64
(Or you can elect to “audit” the class during the add/drop period.)

Policies:
  • Course format is interactive lecture, with most projects done outside of class.
  • No makeup exams will be offered without the prior approval of the instructor.  If a make-up exam is offered, you can take the exam in my office during my regular office hours, or from the Dale Mabry Testing Center.  (Check for their hours of operation, and make sure to give yourself sufficient time to complete an exam.  You will need to make an appointment to schedule a make-up exam.)
  • Exams will be closed book and closed note multiple choice exams.  While the exams are non-cumulative, each does build upon knowledge acquired earlier.  Exams are based mostly upon material presented in class however some questions may be from assigned readings (the textbook and on-line resources).
  • Exams will only cover material discussed in class or assigned as reading, before the exam.  Should the class fall behind the course schedule, some topics shown on the syllabus due for an earlier exam will be tested on the following exam instead.
  • Regular attendance is imperative for the successful completion of this class.  The textbook and on-line resources should be considered as required course supplements; in other words, the course is not based on the text.
  • All phones, pagers, and beepers must be turned off during class time, except with prior permission of the instructor.  No food or drink is permitted in HCC classrooms.
  • Attendance will be taken within 5 minutes of the start of class; after 4 unexcused absences and/or lateness, the student will lose 2 points off the final grade for each additional occurrence.
  • If you miss a class, you are still responsible for the material covered in that class.  All students should exchange contact information (name, email address, phone number) with at least one other student in the class.  If you must miss a class, you should then contact another student and request they take class notes for you.  (Note, Hawkmail provides email for our course.)
  • Credit for class participation includes attendance, preparedness, and adding to class discussions by asking questions and participating in discussions.  Playing computer games, surfing the Internet, or working on assignments for this or other classes during class time will lose you credit.
  • Additional time outside of class will be required.  For typical students an average of between 6 and 10 hours each week outside of class are required for preparation, practice, projects, and homework assignments.
  • Students are expected to prepare for each class by completing all reading assignments, reviewing examples and model solutions provided, and practicing outside of class.  This is important — you can't learn a skill such as shell scripting only by attending class and reading books.  You must practice, several hours a few days each week!  If you won't have enough time available, consider auditing the course.
  • Students are expected to check the class website regularly.  Any syllabus changes, class cancellations, and project assignments are announced in class and posted to the website and the RSS feed for this class.
  • A student shall not, without my express authorization, make or receive any recording, including but not limited to audio and video recordings, of any class, cocurricular meeting, organizational meeting, or meeting with me.  Further, you do not have my permission to post on the web or otherwise distribute my class lectures and other course materials.  (You can distribute freely any materials I make publicly available from the HCC (or the wpollock.com) website, without asking permission, provided you give me credit for the work and don't alter it.  Any other use will require expressly given permission.
  • Working together on individual assignments is considered as cheating!  Turning in someone else's work without giving them credit is also considered cheating (plagiarism).  Cheating will result in an automatic F (zero) for the project for all parties.  Also, you can only earn credit for your own work and not someone else's, even if you do cite your sources.  Note that some projects may be group projects, where each member of a small group works together on a project.  It is also okay to ask a fellow student for class notes (in the event you miss a class) or for help in understanding the text or material given to the class (e.g., examples on the class website).  You are encouraged to study together as well.
  • You must abide by the HCC Acceptable Use Policy (AUP) for computers and services.  In particular, you must not run network scanners, or attempt to obtain administrator (“root”) privileges or otherwise disrupt HCC computers and services.
  • You must follow the academic honesty policy and the student code of conduct for HCC.  A second cheating offense will result in an “F” for the course, and your name will be turned over to the dean for further handling.  I take these matters very seriously.  You have been warned!
  • Every effort will be made to stick to the weekly schedule for our course.  However it may happen that we will fall behind the schedule at some point.  If so, no topics will be skipped.  Instead we will attempt to catch up over the following weeks.
  • Please be aware that if we fall behind on the weekly schedule, the topics discussed may not match what shows on the syllabus.  The weekly schedule may (but probably won't be) updated in this case.
  • In case we do fall behind, projects and exams will not be automatically postponed.  Should your instructor deem it necessary, projects and exams may be rescheduled; this will be announced in class.
  • Communications Policy:  I will respond to your emails within 48 hours or two business days.  HCC policy is that grades can only be discussed in person during office hours, or via email only if you use your assigned HCC HawkNet (Hawkmail365) email account.
  • No appointment is necessary to see me during my scheduled, on-campus office hours.  You can just “walk-in”.  You can make appointments for other times as long as I'm available.
  • Occasionally my office hours will be canceled on short (or no) notice, for example if the dean calls me for a meeting.  Before driving out to campus just for my office hours, you should contact me the day before to make sure I still plan to be there.
  • Late Policies:  Late assignments (homework assignments, projects, or exams) generally will not be accepted.  An assignment is late if not turned in by the start of class on the day it is due.

    Late assignments will be accepted late only if you obtain the instructor's permission prior to the due date of the assignment, or for a documented serious medical reason.  All late assignments are subject to a late penalty of at least one letter grade (10%) regardless of the reason for the delay.

    Projects and homework assignments later than one week will receive a more severe late penalty; very late assignments without adequate excuses will receive a grade of “F” (0).  However if you have a very good reason your instructor may waive any or all of the late penalty.  (Examples of good reasons include extended illness that prevents working, being out of town for work, or military service.  Remember, documentation will be required.)

  • The dangers of the flu or another contagious disease require some changes to normal policies.  HCC is implementing the recommendations for institutions of higher learning of the CDC.  (See www.cdc.gov/h1n1flu/guidance/ and www.flu.gov/ for guidance from the CDC.)  You won't need documentation if you miss class due to the flu.  (But if you think you have the flu, you should see a doctor as soon as you can.)  In the unlikely event of a school closure due to the flu, some plan to make up the missed work will be made.

    If you think you have the flu, stay home.  Do not come to HCC until 48 hours after your fever has broken as you are still infectious.  Also, people are infectious to others for a day or so before they have any symptoms.  Flu is spread by touching doorknobs, computer keyboards, railings on stairs, etc., that were touched by someone with the flu.  Avoid shaking hands; use the “fist shake” (touching of fists) if you must use a physical greeting.  The most effective way to avoid catching the flu is to wash your hands frequently, especially after touching something that was touched by others.  Avoid unnecessary touching of eyes, nose and mouth.  While not as good as properly washing hands, hand sanitizers have been installed throughout the campus; use them often.

Projects: Projects will be assigned from the class web page at various times.  You will have sufficient time to complete the projects, at least a week but usually two weeks.  Although there may be in-class group exercises, you must work individually on projects, typically outside of regular class hours, except when a project is designated as a group project.  (Currently, all projects are designated group projects.)  You may work together in small (two to four people) groups on group projects, provided the names of all who worked together are listed.  Each student must still submit their own copy of the assignment.

Projects are graded on the following scale:

A = 95% (Excellent: Good design with good comments, style, and extras)
B = 85% (Good: Good design, some comments, readable style, and it works)
C = 75% (Acceptable: Project objectives are met or are close to being met)
D = 65% (Unacceptable)
E = 10-64% (Variable credit: At least you tried)
F =  0% (Didn't hand in the project)

Minor extras worth +5 points, minor omissions or poor design worth -5.

Projects are not graded when turned in.  They are graded all at once, sometime after the project deadline has passed (usually the following weekend).  Every effort will be make to grade projects within a week of the due date, or as soon thereafter as possible.  (See also submitting assignments below.)

Submitting Assignments: Projects should be submitted by email to .  Please use a subject such as “Shell Scripting Project #1 Submission” so I can tell which emails are submitted work.  Send only one assignment per email message.  Email your projects by copy-and-paste into your mail program.  Please do not use email attachments, except when noted in the assignment directions.  If possible, use the “text” and not the “HTML” mode of your email program.

Do not send any email to wpollock@YborStudent.hccfl.edu, or send any email from YborStudent.

In the event a student submits more than once for the same assignment, I will ignore all but the last one received up to the deadline.  Assignments submitted after the deadline will not count toward your grade except as allowed by the course late policy.  Also, you cannot resubmit an assignment once it has been graded.

The HCC email server automatically accepts and silently discards email with certain types of attachments.  If you must send email to my Internet (non-YborStudent) email account please avoid using any attachments, but especially “zip” files.  To send email with a “.zip” attachment you must first rename the file extension to “.zap” and then send the renamed file as an attachment.

To avoid having your submitted work rejected as “spam”, you can use Hawkmail365 to send email to professors.  This doesn't always work either!  If you are having difficulties with this email address, use MyHCC email.)

If you have an email problem you may turn in a printout instead.  Be sure your name is clearly written on the top of any pages turned in.  Please staple multiple pages together (at the upper left).

Always keep a backup copy of your submitted projects, until you are certain they have been received and graded correctly.

Academic Calendar
HCC Academic Calendar:
Classes Begin: Tuesday  1/10/2017   (First class meeting: Wednesday 1/11/2017)
(Dale Mabry campus only!  Rest of HCC begins on Monday 1/9/2017)
Add-Drop Ends: Friday   1/13/2017
Last Day to Withdraw:  Friday  3/24/2017
Classes End: Monday  5/8/2017  (Last regularly scheduled day of class: Monday 5/8/2017
Grades Available:  Thursday  5/11/2017   (from Florida Virtual Campus or from HawkNet)
HCC is closed on: Monday  1/9/2017 Dale Mabry campus only
Monday  1/16/2017 (Martin Luther King Jr. Day),
Monday  2/20/2016 (Presidents' Day) (all campuses closed except for Dale Mabry),
Monday–Sunday  3/13/2017–3/19/2017 (Mid-Term Break),
Thursday  4/13/2017 (Faculty In-Service Day)
Friday–Sunday  4/14/2017–4/16/2017 (Spring Day),

Consequences of Dropping or Withdrawing

Dropping or withdrawing may have an impact on financial aid, veteran’s benefits, or international student visa status.  Students are encouraged to consult with a financial aid, the VA certifying official, or the international student advisor, as appropriate, prior to dropping or withdrawing from class.

Requests For Accommodations

If, to participate in this course, you require an accommodation due to a physical disability or learning impairment, you must contact the Office of Services to Students with Disabilities, Dale Mabry campus: Student Services Building (DSTU) Room 102, voice phone: (813) 259–6035,  FAX: (813) 253–7336.

HCC has a religious observance policy that accommodates the religious observance, practices, and beliefs of students.  Should students need to miss class or postpone examinations and assignments due to religious observances, they must notify their instructor at least one week prior to a religious observance.

 

Quotes on learning
Quotes:         Tell me and I'll listen.
Show me and I'll understand.
Involve me and I'll learn.
    — Lakota Indian saying
        Learning is not a spectator sport!     — Chickering & Gamson
Day by day course schedule
Dates Mon     Wed Topics and Assigned Readings
  1/11   Course introduction, assign User ID, discuss passwords.  What is shell scripting?  Why is it important to know?  POSIX and portability. 
File, directory, and pathname concept review.  Review basic commands:  cd, pwd, pathchk, mkdir, rmdir, passwd, cp, mv, rm, ln, ls -laRd, who, echo, cat, more and less, tac and rev.  Useful non-standard utilities include:  pwgen and apg, script and screen, and readlink.  Using man, info, and other resources.
Readings:  Chapter 1, man pages for listed commands
  1/16 Martin Luther King Jr. Day  —  HCC Closed
1/18  
  1/23  
The vi and vim (and other) text editors.
Project 1 due: 1/23
Readings:  online vi/vim resources, (Chapter 22 in Hahn)
  1/25   Shell scripting basic concepts (mostly review): she-bang, permissions.  Shell features: globbing (wildcards), locales (I18N), I/O redirection, pipelines. Using here documents.  Understanding processes, process groups (jobs), and sessions.
Readings:  Chapter 2; pages 93-97, 289, 262-264, 315-320, on-line locale resources, (465-471 in Hahn book)
1/30     2/1
  2/6
Regular Expressions (BREs, EREs, PREs, and POSIX).
Readings:  Chapter 3 (pages 51-64), on-line regular expression resources
  2/8   Exam #1
Project 2 due: 2/8
  2/13     2/15   Some common filter commands:  sed, cut, paste, tr, tail (also tailf and head), wc, grep, sort, uniq, od (and xxd), strings, diff (and cmp, vimdiff sdiff, comm, and patch), yes, nl.
echo and printf.
Readings:  Chapter 3 (pages 64-91), pages 202-207, the man pages for the listed commands
  2/15 Presidents' Day  —  HCC Closed
2/20    2/22
  2/27  
Python basics: variables, statements, if-statements, loops, ...  Comparison with Perl.
Project 3 (filters) due: 2/27
Readings:  on-line Python resources and Perl resources
3/1  
  3/6  
Using awk to simplify data processing and report generation.
Readings:  on-line awk resources, find command resources
  3/8   Additional utilities useful in scripts:  find, file, dd, wget, curl, rsync, tee, xargs, expect, and sendmail/mail/mailx.  Selecting the right tool for the job.
Project 4 (Perl or Python) due: 3/8
Readings:  The man pages for the commands listed, find command resources, xargs, expect (and Tcl/Tk) command resources
3/13 – 3/29 Mid-Term Break  —  HCC Closed
3/20     3/22 Command line processing steps (input, tokenizing, parsing, various expansions, command substitution, arithmetic expansion, field splitting (and IFS), quote removal, I/O redirections).  Tilde substitution, quoting, eval.  Sub-shells and command grouping.
Project 5 (awk) due: 3/22
Readings:  Chapters 5, 10, pages 251-254, 255-257, 317-319, on-line command line processing resources
  3/27   Exam #2
  3/29   Positional and other special parameters, parameter substitution.  shift, using set.  Exit status and $?.
Readings:  Chapters 6, 11, pages 131-135, 246-251
  4/3   Using if statements and the test command, the && and || operators.  The exit command.  Using case statements (and bash extended pattern-matching).
Readings:  Chapter 7
4/5  

  4/10
Using shell loops: while, until, and for loops.  Using break and continue.  Creating and using shell functions.  Parsing the command line with getopts.  Using seq (Linux only).
Project 6 (parse access log) due: 4/5
Readings:  Chapter 8, pages 268-271, 332-333, 180-184, 303
4/12   Interactive (login) shell use: aliases, login scripts, the environment, history, auto-completion, job control, using nohup, restricted shell.  Using shell variables, shell built-in commands.
Readings:  Chapters 11, pages 103-110, 284, 326-328, 330-339, 340-346, 352-359
  Thu 4/13   (Thursday)   In-Service Day  —  HCC Closed
  Fri–Sun
4/14–4/16
(Friday–Sunday) Spring Day  —  HCC Closed
4/17     4/19 Review: Environment variables, permissions, PATH, comments, she-bang line, sourcing scripts.  Command substitution.  shell arithmetic, expr, and bc.  Dealing with octal and hex numbers: numbers with leading zeros.
Readings:  Chapter 4; pages 303-306, on-line permissions and octal number reference, on-line command line processing resources
  4/24 Using read for interactive shell scripts.  Using named pipes.  Temporary files.
Project 7 (find) due: 4/24
Readings:  Chapter 9, on-line resources for temporary files, on-line resources for named pipes
  4/26  

  5/1
Using signals: kill and trap commands.  The wait command.
Readings:  Pages 257-261
  5/3   Optional (time and interest permitting): Creating TUI menu-driven scripts (mention select loops/menus).  Shell archive files.  Advanced I/O redirection techniques.  Working with shell arrays, lists.  Customizing output with tput.  Creating progress bars.  Using stty to control input.  Using readline.  Using the Linux dialog command to add a GUI to scripts.  Using scripts for Website support, management, and web page generation (MRTG scripts).  Using MySQL, PostgreSQL databases with shell scripts.
Readings:  On-line resources TBD
  5/8   Exam #3
Project 8 (getopts) due: 5/8

 


 

Class Resources
Resources
PuTTY home Recommended Windows SSH client     Copy and Paste Help How to use PuTTY's copy and Paste
Csh Programming Considered Harmful A famous article from Tom Christiansen posted in 1996     Soft Skills Information about Soft Skills, Professional affiliations and certifications, and job hunting and interviewing tips.
www.unix.org The OpenGroup's Unix site, include the Single Unix Specification     comp.unix.shell newsgroup An active discussion netnews group; you can post questions here and get anwsers
Linux Standard Base (LSB) Standard tools, DLLs, etc., common to all Linux distros;  Current spec maintained by The Linux Foundation     Single Unix Specification The current Unix reference, including for the shell and utilities
The UNIX System: Making Computers More Productive An AT&T historical video introduction to UNIX     Unix Standard search plugin Download this XML file; put it in the “searchplugins” directory in Firefox Profile directory, or in the install location's browser/searchplugins directory  (You may have to create these folders)
docs.sun.com Solaris man pages, administrator guides, and more     linux.die.net Searchable Linux man pages in HTML format
Various system shells Sven Mascheck's page describing the standard shells found on many systems     The Unix Heritage Society Preserves historical versions of Unix (including source code) and Unix history
LinuxCommand.org Excellent site for shell and related resources, including a PDF book you can use for review or as a reference     CommandLineFu.com A large collection of “one-line” shell scripts
PurpleMath.com Basic and college math tutorials; highly recommended if you need a refresher     Locales Brief overview of locales and text encoding
Vi lovers home Tutorials, FAQs, and references for vi     vim home Home page for VIM (Vi, IMproved)
Vim documentation project Tutorials, FAQs, and references for vim     vim quick reference (PDF) A two-page reference to vim
Vim Graphical Cheat-sheet (PDF) A nice quick reference graphic (Preview), from www.viemu.com     Why use vi An article explaining why vi/vim is a great editor
Vim Tips Nice collection of productivity tricks for Vim     Play Vim Adventures An adventure-like game designed to teach you Vim
Regular Expressions Shows Regular Expression (“regex”) syntax     RegExLab.jar Download Regular Expression Lab (a Java program);  (See also Java Regular Expression syntax summary)
www.regular-expressions.info On-line tutorial and reference for regular expressions     regexlib.com On-line cookbook (library) of standard regular expressions
regular expression cartoon The importance of learning regular expressions (Source: xkcd.com)     Learning to Use Regular Expressions Another regular expression tutorial
sed one-liners explained A pretty good sed "cookbook"        
Python.org Python language home     Python PEP #1 Python Enhancement Proposals
Python lecture notes Some brief lecture notes about the Python language     ACMPython Learning Path Python tutorial (assumes you know basic concepts)
Python 2 & 3 documentation Python documentation, including library and language references, tutorials, and HOWTOs     Python community forums Python's help forums
Python 3 official tutorial See also the Python 2 tutorial     LearnPython.org Interactive Python tutorial
TutorialsPoint.com Python tutorial Another pretty good Python tutorial     Think Python: How to Think Like a Computer Scientist The Python textbook (free online) used for the Python Tutorial for MIT's Open Courseware Intro to Electrical Engineering and Computer Science I
Python Qt PyQt tutorial    
A perl tutorial A short tutorial, with examples (work in progress)     CPAN Comprehensive Perl Archive Network
learn.perl.org Perl tutorials from Perl.org     Beginning Perl An on-line book for learning Perl
PerlMonks.org tutorials Another site with Perl resources     Perl.com A portal for all things Perl
PerlMeme.org tutorials Good site with Perl resources     Perl's here documents A description of Perl here documents
Scripting language comparison chart A “cheat-sheet” comparing Perl, PHP, Python, and Ruby     RosettaCode.org A wonderful learning site, RosettaCode solves hundreds of scripting tasks the same way, but using different languages.
Gnu AWK User Guide A tutorial and reference manual for Gnu AWK     AWK FAQ AWK Frequently Asked Questions
AWK Overview A copy of my lecture notes for AWK     POSIX AWK Reference and description The AWK man page from The Open Group POSIX document SUSv4
A find tutorial A short tutorial, with examples     find command tip Shows how to use find to locate files modified by an administration tool
An xargs tutorial From www.unixreview.com     Shell Scripting Introduction Shows the basics of shell scripting
An expect tutorial From the O'Reilly book Exploring Expect     Tcl tutorial Shows the basics of Tcl scripting  (See also Tk tutorial)
Command Line Processing The steps the shell performs when parsing input     Variables, Control Structures, and Funtions A mini-tutorial for non-programmers
POSIX (and SUS) Utility Guidelines Standard utility conventions (such as starting options with a dash)     Using getopts and getopt A brief tutorial
Octal Number Chart Shows how to use octal numbers with chmod and umask     Filesystem Hierarchy Standard (FHS) A description of the standard directories on Linux (for Unix systems, see also man filesystem)
Using temporary files, trap How to create, use, and clean up temporary files using trap     Using named pipes How to use named pipes (a.k.a. FIFOs)
flock-demo A script showing advisory file locking with flock     timestamp.sh A POSIX script to display Unix Time (See also timestamp.c)
crontab reference Shows crontab file syntax     at command syntax Some at samples of entering times and dates, and other info
StartupScript.txt Sample startup shell scripts (/etc/init.d/foo) for a foo server     System V init files From /usr/share/doc/initscripts-7.42.2 on Fedora
RCS Demo A sample session using RCS with a shell script     Here documents An overview of the Unix/Linux shell's here document
Shell Scripts (and Other Demos)
LDP: Bash scripting guide and reference) Shows how to write Bash shell scripts  (See also this good Bash guide and reference from mywiki.wooledge.org)     SSC's Bash reference card (PDF) See also the complete Bash man page
fancyio Shows how to write interactive shell scripts     fortune A fortune cookie script (plus some sample fortunes)
nusers Shows a simple shell script     nusers.1 Sample man page for nusers, using troff/man macros
getopts Demo A demo of the POSIX getopts utility     getopt Demo A demo of the Gnu getopt utility
backup-etc.sh A simple shell script to backup /etc directory     httpd.sh Apache script for use in rc.d/init.d
.bashrc Some useful bash shell aliases and functions     .bash_profile A simple Bash login script
.procmailrc A sample .procmailrc that auto-replies and filters spam     add-users A complex script used to add users in batches
expect-demo Using expect to script changing a user's password.        
todo A simple “todo list” shell script     didit Simple shell script, used with “todo” script
didit2 Shell script, used with “todo” script     didit3 Fancy shell script, used with “todo” script
pick interactive selection script     watch Shows how to write shell and awk scripts
suidDemo.tgz Shows how suid can be used to control access to files     Sample .vimrc A basic ~/.vimrc file
exec Demo A demo using exec to emulate BASIC's READ and DATA statements     find-IP A script to locate files in /etc containing the host's IP address
sttydemo.sh A script using stty for fancy I/O     find-dups.sh A highly portable script that shows many advanced techniques, that finds duplicate files by comparing MD5 checksums
filter.py Model Python script to act as a standard *nix filter     hellotk.pl A Perl/Tk GUI script (Hello, World)
Perl CGI (Database) Scripts
filter.pl Model Perl script to act as a standard *nix filter     hellotk.pl A Perl/Tk GUI script (Hello, World)
HccDump The SQL statements needed to create the HCC MySQL database     graphics.tgz The gzipped tar file containing the sample gif files for the hcc.com postcard system;  (Unpack in the directory: DocumentRoot/graphics)
send-postcard.pl Perl script to send an e-card; uses CGI and DBI (DB access)     show-postcard.pl Perl script to retrieve an e-card; uses CGI and DBI

[Valid RSS]

RSS iconXML iconRSS feed for this page

What is RSS?