Hands-on task
This task is step 4 of the course “First steps with text”
Put things in order
The /root/data directory has two lists:
users.txt— employee logins;sizes.txt— file sizes in megabytes.
- Save the logins in alphabetical order (a to z) to
/root/users_sorted.txt. - Save the sizes from the largest to the smallest to
/root/sizes_sorted.txt.
Don't change the original files.
What you'll practise:
- sort
- sort -n
- sort -r
- numbers vs text