$25
“Pipeline Master” Project Brief
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.
.
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
tac
command (reverse of the
cat
Note: Solutions using the command) will not be valid.
tee
Hint: Take a look at the command