Say i have a output file with following: 010513 08:04 ROUTER1 192.168.1.1 188.8.131.52 HIT(1) 010513 08:04 ROUTER1 184.108.40.206 220.127.116.11 HIT(1) 010513 08:04 ROUTER1 18.104.22.168 ...
I need to sort a file based on the number of chars in the first column. I have no idea on how to go about this. (On Linux, so sed/awk/sort is available). An example: .abs is bla bla 12 .abc is bla ...
I have very big logs (several gigabytes per day), that can (but do not need to) contain specific lines. I have to count the number of occurences of every one of these lines on a daily basis. I have a ...
Unix utilities like sort, find, grep, diff et al are very handy to perform quick tasks, sometimes without writing any code at all. I wanted to know what algorithms do they internally use and how do ...