Computer scienceSystem administration and DevOpsCommand lineText processing

Sorting and deduplication

Sort the data

Report a typo

Use the sort command to print the lines from the /tmp/test.txt file in lexicographic order.

Sample Input 1:

laptop
notebook
screen
internet

Sample Output 1:

internet
laptop
notebook
screen
Write a program in Shell
#!/usr/bin/env bash
solve() {
# add your solution here

}
___

Create a free account to access the full topic