User Tools

Site Tools


skill-tree:use:1:2:b

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
skill-tree:use:1:2:b [2020/07/19 21:20] lucyskill-tree:use:1:2:b [2025/04/16 18:30] (current) – external edit 127.0.0.1
Line 1: Line 1:
-# USE1.2-B Shell Scripts +# USE1.2 Shell Scripts
-# Background+
  
 The shell provides a programming language that allows you to write programs (known as shell scripts), which helps to combine commands into more complex applications. The shell provides a programming language that allows you to write programs (known as shell scripts), which helps to combine commands into more complex applications.
Line 9: Line 8:
 This skill covers the bash shell. This skill covers the bash shell.
  
-Aim +## Requirements
-  * To automatize and bundle repetitive tasks in form of shell scripts.+
  
-# Outcomes +* [[skill-tree:use:1:1:b]] 
-  * Create a basic shell script that executes a sequence of programs. + 
-  * Design a script using the bash construct "if" that handles conditional execution based on:+## Learning Outcomes 
 + 
 +* Create a basic shell script that executes a sequence of programs. 
 +* Design a script using the bash construct "if" that handles conditional execution based on:
     * Performing a test for the existing of a file/directory,     * Performing a test for the existing of a file/directory,
     * Testing for the presence of certain text in a file,     * Testing for the presence of certain text in a file,
-  * Design a script that performs a task repeatedly using the bash "for" or "while" loop. +* Design a script that performs a task repeatedly using the bash "for" or "while" loop. 
-  * Utilize debugging options for troubleshooting of shell programs:+* Utilize debugging options for troubleshooting of shell programs:
     * Options to bash: -e, -x     * Options to bash: -e, -x
-  * Use shell functions to break large, complex sequences, into a series of small functions. +* Use shell functions to break large, complex sequences, into a series of small functions. 
-  * Learn how to manipulate filenames. +* Learn how to manipulate filenames. 
-  * Learn to manage temporary files:+* Learn to manage temporary files:
     * Choose an adequate file system (or top directory) for temporary files.     * Choose an adequate file system (or top directory) for temporary files.
     * Automatically generate a unique folder name for temporary files.     * Automatically generate a unique folder name for temporary files.
     * Automatically delete temporary folder whenever the script exits.     * Automatically delete temporary folder whenever the script exits.
  
-# Subskills 
  
skill-tree/use/1/2/b.1595186402.txt.gz · Last modified: 2020/07/19 21:20 by lucy