Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input Parameter Parsing in Bash #806

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sarthaknimbalkar
Copy link

@sarthaknimbalkar sarthaknimbalkar commented Aug 24, 2024

For Input Parameter Parsing:
Description:

  • Added a comprehensive tutorial on parsing input parameters in Bash using getopts.
  • Explained how to handle short options, required arguments, and flags.
  • Included an exercise where the user must create a script to handle options -n, -u, and -f for modifying the input name.
  • Provided initial starter code and expected output for the exercise.
  • Added a full solution demonstrating how to parse and process options correctly.
  • Ensured the tutorial structure includes sections for explanation, exercise, code, expected output, and solution.

For Regex:
Description:

  • Added a detailed tutorial on using Regular Expressions (Regex) in Bash.
  • Explained basic regex syntax and how it’s used in Bash scripts with [[ ]] and grep.
  • Provided an exercise for validating email addresses using regex.
  • Included starter code, expected output, and a complete solution for the exercise.
  • Ensured the tutorial structure aligns with the standard format, covering explanation, exercise, code, expected output, and solution.

For Special Commands:
Description:

  • Added a detailed tutorial covering the special commands sed, awk, grep, and sort.
  • Included an overview of each command, with practical examples and common use cases.
  • Provided an exercise that integrates all four commands in a realistic scenario for filtering, sorting, and formatting data.
  • Ensured the tutorial maintains a clear structure with explanation, exercise code, expected output, and solution.

**Description:**

- Added a detailed tutorial covering the special commands `sed`, `awk`, `grep`, and `sort`.
- Included an overview of each command, with practical examples and common use cases.
- Provided an exercise that integrates all four commands in a realistic scenario for filtering, sorting, and formatting data.
- Ensured the tutorial maintains a clear structure with explanation, exercise code, expected output, and solution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant