Skip to content

Commit

Permalink
Change chapter 2
Browse files Browse the repository at this point in the history
  • Loading branch information
RHCSA committed Dec 4, 2024
1 parent 644b62f commit b4fc527
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 02- Use Looping constructs (for, etc.) to process file, command line input:

The RHCSA exam topic **"Use Looping constructs (for, etc.) to process file, command line input in shell scripts"** is fundamental for automating repetitive tasks in Linux. Looping constructs, especially `for`, allow you to process multiple files, iterate over command output, or handle arguments passed to a script.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 03- Process script inputs ($1, $2, etc.):

The RHCSA exam topic **"Process script inputs (`$1`, `$2`, etc.)"** focuses on handling positional parameters in shell scripts. Positional parameters are used to pass arguments to a script and are crucial for making scripts dynamic and flexible. This topic tests your ability to handle command-line inputs within scripts using variables like **`$1`, `$2`**, and others, allowing you to process user-provided data.


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 04- Processing output of shell commands within a script:

The RHCSA exam topic **"Processing output of shell commands within a script"** is crucial because it involves capturing and using the output of shell commands in a script. This skill is essential for creating dynamic and flexible scripts that respond to system information or user input. Shell commands like `ls`, `grep`, `df`, and others can be used within scripts to gather data, which can then be processed using conditionals, loops, or redirections.

---
Expand Down
22 changes: 10 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,13 @@
<td class="admin">ADMINISTRATOR</td>
</tr>
<tr class="image-container-bottom">
<td><img src="https://images.credly.com/size/340x340/images/572de0ba-2c59-4816-a59d-b0e1687e45ee/image.png" alt="RHCSA Badge"></td>
<td>
<a href="https://www.credly.com/badges/fff62969-d5cf-4e57-b4a3-856c2a0b12a9" target="_blank">
<img src="https://images.credly.com/size/340x340/images/572de0ba-2c59-4816-a59d-b0e1687e45ee/image.png" alt="RHCSA Badge">
</a>
</td>
</tr>

<tr class="image-container-bottom">
<td><img src="https://github.com/RHCSA/RHCSA.github.io/blob/main/photos/youtube-button.png?raw=true" alt="Youtube Channel"></td>
</tr>
Expand Down Expand Up @@ -344,17 +349,10 @@ <h2>Chapter 01: Understand and use essential tools:</h2>
<div id="chapter2" class="tab-content">
<h2>Chapter 02: Create simple shell scripts:</h2>
<div class="gradual-buttons">
<button onclick="loadMarkdown('https://raw.githubusercontent.com/hmdhszd/Red-Hat-Certified-System-Administrator-RHCSA/main/contents/02-%20Create%20simple%20shell%20scripts/01-%20Conditionally%20execute%20code%20use%20of%20if%2C%20test%2C%20%5B%5D%2C%20etc.md', 'chapter2')">01- Conditionally execute code use of if, test, [], etc.</button>
<button onclick="loadMarkdown('.md', 'chapter2')">01- </button>
<button onclick="loadMarkdown('.md', 'chapter2')">01- </button>
<button onclick="loadMarkdown('.md', 'chapter2')">01- </button>
<button onclick="loadMarkdown('.md', 'chapter2')">01- </button>
<button onclick="loadMarkdown('.md', 'chapter2')">01- </button>
<button onclick="loadMarkdown('.md', 'chapter2')">01- </button>
<button onclick="loadMarkdown('.md', 'chapter2')">01- </button>
<button onclick="loadMarkdown('.md', 'chapter2')">01- </button>
<button onclick="loadMarkdown('.md', 'chapter2')">01- </button>
<button onclick="loadMarkdown('.md', 'chapter2')">01- </button>
<button onclick="loadMarkdown('https://raw.githubusercontent.com/RHCSA/RHCSA.github.io/refs/heads/main/contents/02-%20Create%20simple%20shell%20scripts.md/01-%20Conditionally%20execute%20code%20use%20of%20if%2C%20test%2C%20%5B%5D%2C%20etc.md', 'chapter2')">01- Conditionally execute code use of if, test, [], etc.</button>
<button onclick="loadMarkdown('https://raw.githubusercontent.com/RHCSA/RHCSA.github.io/refs/heads/main/contents/02-%20Create%20simple%20shell%20scripts.md/02-%20Use%20Looping%20constructs%20(for%2C%20etc.)%20to%20process%20file%2C%20command%20line%20input.md', 'chapter2')">02- Use Looping constructs (for, etc.) to process file, command line input</button>
<button onclick="loadMarkdown('https://raw.githubusercontent.com/RHCSA/RHCSA.github.io/refs/heads/main/contents/02-%20Create%20simple%20shell%20scripts.md/03-%20Process%20script%20inputs%20(%241%2C%20%242%2C%20etc.).md', 'chapter2')">03- Process script inputs ($1, $2, etc.)</button>
<button onclick="loadMarkdown('https://raw.githubusercontent.com/RHCSA/RHCSA.github.io/refs/heads/main/contents/02-%20Create%20simple%20shell%20scripts.md/04-%20Processing%20output%20of%20shell%20commands%20within%20a%20script.md', 'chapter2')">04- Processing output of shell commands within a script</button>
</div>
<div class="markdown-container">
<div class="text-content"></div>
Expand Down

0 comments on commit b4fc527

Please sign in to comment.