How to sort the list of values in UNIX on command prompt
Use SORT command of Unix:
For example:
>grep 'Copied successfully' /tmp/dd_grid_data_log | awk {'print $10'} | sort -n
output:
>2
2
2
2
2
2
2
2
2
2
2
2
3
3
46
47
50
56
57
61
63
66
68
70
72
73
73
111
113
122
126
127
130
No comments:
Post a Comment