- .. - Project directory
Name | Description |
---|---|
RAM_Monitoring.sh | RAM Monitoring |
archive_project.sh | Archive older files or older files |
fds_status.sh | Monitoring filesystem space and sent an alert email, Archive older files or older files |
- .. - Parent directory
Name | Description |
---|---|
01_basic.sh | Basic script |
02_comment.sh | Example of single line and multi line comment |
03_vardemo.sh | Example of variable demo |
04_constant_var.sh | Example of constant variable |
05_arrays.sh | Example of Array |
06_key-value.sh | Example of storing key value pair |
07_string_ops.sh | Example of string operations |
08_user_int.sh | Example of user interaction |
09_arith_ops.sh | Example of Arithmatic Ops |
10_if-else.sh | Example of If-Else |
11_elif-demo.sh | Example of Elif demo |
12_case-demo.sh | Example switch case demo |
13_logical-ops.sh | Example of logical operations |
14_ternary-ops.sh | Example of ternary Ops |
15_forloop1.sh | Example of for loop |
16_for_with_file.sh | Example of for with file |
17_for_with_array.sh | Example of for with array |
18_while-demo.sh | Example of while loop demo |
19_until_loop.sh | Use of until loop |
20_infinite_loop.sh | Example of infinite loop using while |
21_infinite_for_loop.sh | Example of infinite loop using for loop |
22_while_with_file.sh | Reading file contents using while loop |
23_while_with_csv.sh | Read & Print content of CSV file using while |
24_function_demo.sh | Example of function working |
25_function_with_args.sh | Script for performing ArthOp on args to function |
26_args.sh | Example of argument passing |
27_shift_args.sh | Example of shifting arguments |
28_break.sh | Example of break statement in loop |
29_continue.sh | Example of continue statement in loop |
30_connectivity_check.sh | Example of "/dev/null" & "$?" |
31_file_exist_check.sh | Ex. of checking file is exist or not |
32_dice.sh | Use of bash variable : RANDOM |
33_root_usercheck.sh | Ex. of checking Is this a root or not using UIDVar |
34_redirect.sh | Basic example of redirection |
35_scriptname.sh | Example of printing script name using "${0}" |
36_logger.sh | Example of logging using "logger" keyword |
37_debugging.sh | Debugging of script using "set" various options |
Name | Description |
---|---|
README.md | Create README.md |
redirect.log | The output of 34_redirect.sh |
test.csv | CSV File used for operations |
Welcome to the MyScripts repository! This repository contains a collection of shell scripts that cover various topics related to Bash scripting and Linux system administration. These scripts serve as examples, tutorials, and tools to help you learn and work with shell scripting more effectively.
This repository covers the following topics:
- Shell Scripting: Learn the basics of shell scripting, including variables, loops, conditionals, and more.
- File System Operations: Explore scripts for monitoring disk space, archiving files, and checking file existence.
- User Interaction: Understand how to interact with users through scripts, take input, and display output.
- Logical and Arithmetic Operations: Dive into logical and arithmetic operations in shell scripting.
- Looping Constructs: Study various loop types, including for loops, while loops, and until loops.
- Functions: Explore the usage of functions in shell scripts.
- Script Debugging: Learn debugging techniques and best practices for troubleshooting scripts.
- Redirection: Understand how to redirect input and output in shell scripts.
- System Administration: Perform system-related tasks, such as user checks and connectivity checks.
- Randomization: Generate random numbers and use them in your scripts.
- CSV File Operations: Work with CSV files in shell scripts.
- Special Variables: Explore the use of special variables like
$0
,$?
, and$$
. - Logging: Learn how to log messages using the
logger
command.
Feel free to browse the scripts, learn from them, and use them as templates for your own shell scripting projects. If you have any questions or suggestions, please don't hesitate to open an issue or contribute to this repository.
Happy scripting!