Search Results

Search: Posts Made By: eon
11,401
Posted By eon
Thanks, I tried the octal dump and it appears...
Thanks, I tried the octal dump and it appears that the line endings are: \r \n

Could that be the problem? I could try to strip of '\r' with sed I suppose.
11,401
Posted By eon
@anchal_khare I also got it working with other...
@anchal_khare I also got it working with other files, but not with emails.
11,401
Posted By eon
I'd rather not, they are emails. :D Edit: I...
I'd rather not, they are emails. :D

Edit: I made two mock up files with just random words in them, and it now work as intended with them. Very strange, are there any special meaning to @ for bash...
11,401
Posted By eon
That still does not work I'm afraid. file1...
That still does not work I'm afraid.

file1 contains 99 lines which all appear in file2.

file2 contains 109 lines.

What I want is to get the 10 lines that does not appear in file1.

Doing...
11,401
Posted By eon
Thank you, I used the "-f" option, adding "-F" as...
Thank you, I used the "-f" option, adding "-F" as well made it significantly faster.

---------- Post updated 10-12-11 at 12:27 AM ---------- Previous update was 10-11-11 at 04:43 AM ----------
...
11,401
Posted By eon
Thank you, that is so much better! I managed to...
Thank you, that is so much better! I managed to get grep -f to do what I wanted, was not aware of this.
11,401
Posted By eon
Find common terms in two text file, xargs, grep
Hello,

I'm interested in finding all occurrences of the terms in file1 in file2, which are both csv files. I can do this with a loop but I'm interested in knowing if I can also do it with the help...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 11:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy