Assignment 2
Assignment 2
REG.NO: 20BCE2722
● Edit "my_script.sh" using a text editor of your choice and add the following lines:
bash
#!/bin/bash
● List all the processes running on your system using the "ps" command.
● Use the "grep" command to filter the processes list and display only the processes with "bash" in
their name.
● Use the "wc" command to count the number of lines in the filtered output.