Input:
1 denationalise
2 gingal
3 bladdery
4 asepticism
5 cringing
6 chalutzim
7 fanner
8 jubbulpore
9 eidolon
10 overhasty
cat words.txt | sort -k 2
Output:
4 asepticism
3 bladdery
6 chalutzim
5 cringing
1 denationalise
9 eidolon
7 fanner
2 gingal
8 jubbulpore
10 overhasty
Filter out repeated lines in a file.
Input:
1
2
2
3
3
3
4
4
4
4
5
5
5
5
5
cat nums.txt | uniq
Output:
1
2
3
4
5
cat nums.txt | uniq -c
Output:
1 1 2 2 3 3 4 4 5 5
Problem | Score | Companies | Time | Status |
---|---|---|---|---|
Valid phone number | 150 |
|
22:24 | |
Lines in a given range | 200 |
|
27:49 | |
Remove Punctuations | 250 |
|
12:58 | |
Transform CSV | 300 |
|
19:07 |