Question: Using Bash command line user interface. Answer this question in directory ~/class/e01/q04 - file a04.txt Create a file named q04.sh that does the following: 1.

Using Bash command line user interface.

Answer this question in directory ~/class/e01/q04 - file a04.txt

Create a file named q04.sh that does the following:

1. Creates 3 aliases named rfs, ims and chs respectively that usevgrep or wc to:

a. Find and display all the lines containing href (independent of case) in a given file.

b. Find and display all the lines containing jpg, or jpeg (independent of case) in a given file.

c. Finds and displays the size of the file in characters, followed by the filename.

2. Defines an environment variable called CROOT that contains the path to your/home/username/class directory.

3. Defines an environment variable call EXAMPLE1 that contains the path to your/home/username/class/e01 directory.

Run the program using the source command once you have completed it: source q04.sh.

The files t1.html, t2.html, t3.html and t4.html have been provided for testing purposes. The file check04.sh has been provided to help you check your progress.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!