-
Inside your tasks repo, create a directory named
task-5
. -
Download the file
info.txt
from this directory and put it insidetask-5
. Do not edit it. -
Create a file called
solution.txt
. Here, write only the two commands you will use to solve the task. -
During the task, you will create two files:
emails.txt
andprocesses.txt
. Make sure to submit them as well. -
Your task-5 directory should look like that after finishing the task.
task-5/ │ ├── info.csv | ├── emails.txt | ├── processes.txt | ├── solution.txt
-
info.csv
includes records which contain names, emails and age. Extract all emails, sort them alphabetically, remove duplicates and save the output in the fileemails.txt
. (No need to display anything)Hint 1: Email format is
[email protected]
.Hint 2: Use piping to achieve this in one command.
-
Find all the processes on your system (using
ps
) and sort them by theCMD
column. Write only the PID and CMD of the previous output intoprocesses.txt
. (No need to display anything)Hint 1: Refer to
man ps
and search forsort
to find aps
option to help you.Hint 2: Use piping to achieve this in one command.