0 of 7 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 7 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Download the example file if you haven’t done so. Upload it to Replit by clicking the 3 dots next to Files and selecting Upload file.
What’s the command for showing the first 10 lines of the file?
prompt $ FileToSort.txt
What’s the command for sorting the file?
prompt $ FileToSort.txt
You saw in the previous exercise that the numbers were sorted alphabetically 10, 11, 12 before 1, 2….
You can use one of the options to sort numbers correctly. Check this website for a table with the options. Which option?
prompt $ sort FileToSort.txt
The default way of sorting is from low to high. Which option allows to sort from high to low?
prompt $ sort FileToSort.txt
Now try to sort from high to low but taking into account that these are numbers.
Tip: you can write both options together after a single – sign.
prompt $ sort FileToSort.txt
The second column of the file contains names. What’s the option to sort the lines in the file according to names?
Tip: first you write the option, then a blank, then the value for the option.
prompt $ sort FileToSort.txt
Now combine the 2 options: sort on the names but in reverse order.
Tip: Use a single – sign and end with the option that has a value.
prompt $ sort FileToSort.txt
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |