[SOLVED] ece1508 - Network Softwarization: Technologies and Enablers Lab Assignment - 1

30.00 $

Category:

Description

5/5 - (1 vote)

 

“Pipeline Master” Project Brief

Task 1

 

ls
/etc  and your /run

In this task you are asked to use the  command to list out all of the contents in your  folders.

ls

First, deal with the /etc folder. Use the  command to list it’s contents and redirect those contents to a file called file1.txt

/run  folder but redirect the content to a file called file2.txt

Do the same for the  instead.

There should be 2 commands required to complete this. Please show these commands in your submission.

ls /foo  will list the contents in the /foo

Hint:   directory.

Task 2

 

file1.txt   and file2.txt

Once you have   created, it is time to complete task 2 of the assignment!

cat
file2.txt
unsorted.txt
file1.txt

In Task 2, you are asked to use the          command to combine together

(i.e. concatenate)   and                               into another file called

sort  command with the r

But, in the same pipeline you are also asked to also use the  option

cat
reversed.txt

to to reverse the output from the   command and redirect that reversed output to another file called

Task 2 should all be completed in one pipeline. Please show this pipeline in your submission.

tac   command (reverse of the cat

Note: Solutions using the   command) will not be valid.

tee

Hint: Take a look at the   command