How to compare input lines but ignore decimals
If I have below lines in a file and I want to sort first and count unique ones but ignore decimals when comparing, what should i do in uniq options?
Error in test. start=5, executing=12, end=60
Error in test. start=1, executing=20, end=80
Error in test. start=10, executing=5, end=100
Warn in test. begin=1, end=2
Warn in test. begin=4, end=9
I want the output will be like:
3 Error in test. start=5, executing=12, end=60
2 Warn in test. begin=1, end=2
|