Skip to content

Commit e76abcb

Browse files
committed
sort command
1 parent cd16706 commit e76abcb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

hackerrank_practices/34_sort_7.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# You need to sort this file in descending order of the second column (i.e. the average monthly temperature in January).
22

3+
sort -t$"|" -k2 -rn

hackerrank_practices/35_uniq_1.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Given a text file, remove the consecutive repetitions of any line.
2+
3+
uniq

0 commit comments

Comments
 (0)