jarv / cmdchallenge

This repo is mirror of https://gitlab.com/jarv/cmdchallenge
https://about.cmdchallenge.com
MIT License
721 stars 72 forks source link

Comparing files #91

Open nendre opened 7 years ago

nendre commented 7 years ago

Note that

cat access.log.1 | grep -Eo "^[0-9]+.[0-9]+.[0-9]+.[0-9]+" | while read ip; do res=cat access.log.2|grep -Eo $ip; echo $res; done

Produce: 108.68.174.15 28.151.137.59 2.71.250.27 17.137.186.194

but it doesn't recognised valid. Probably because the lines are in different order, but the problem it doesn't require a given order.

0ki commented 7 years ago

This is invalid.

Your solution is incorrect as it prints extra blank lines.