Upload files to "OS/bash/Week4"
Signed-off-by: Aadit Agrawal <tech@aaditagrawal.com>
This commit is contained in:
parent
3d5dfd6481
commit
5b0eda8b4e
5 changed files with 108 additions and 0 deletions
10
OS/bash/Week4/solutions.md
Normal file
10
OS/bash/Week4/solutions.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
## Lab 4
|
||||
|
||||
### Lab Exercises
|
||||
Q1. `q1.sh` - Duplication - `cp` of `$1` arg (first argument).
|
||||
Q2. `q2.sh` - Deletion - `rm` of all `$@` files using `for` loop.
|
||||
Q3. `q3.sh` - String Sort - Selection sort using loops and `if` and `echo`.
|
||||
Q4. `q4.sh` - File TypeCounter - Word/Line/CharCount of file via switch `case` statement and passing various commands.
|
||||
Q5. `q5.sh` - Pattern Recognition - `grep` for finding the pattern, `sed` for deleting the pattern, and `exit` for killing the pattern.
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue