Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparing files #91

Open
nendre opened this issue Feb 2, 2017 · 1 comment
Open

Comparing files #91

nendre opened this issue Feb 2, 2017 · 1 comment

Comments

@nendre
Copy link

nendre commented Feb 2, 2017

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
Copy link
Contributor

0ki commented Feb 3, 2017

This is invalid.

Your solution is incorrect as it prints extra blank lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants