Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • The issue with grep is that you can't easily restrict the match to the 2nd field only. The string 202209 would, for example, match all lines that we are given. Commented Sep 28, 2022 at 8:49
  • I tried the command grep -f BlockspamCLIs.txt *_All_events.csv >> output6.txt but im getting 0 values. one of the numbers there is the 145336 and manually i can find with grep 145336 *_All_events.csv Commented Sep 28, 2022 at 8:57
  • 2
    @macieira are you working on Windows or can you have ever opened the BlockspamCLIs.txt in Windows? If so, that's your problem: windows line endings. Fix the file with dos2unix BlockspamCLIs.txt or sed -i 's/\r//' BlockspamCLIs.txt and try again. Commented Sep 28, 2022 at 9:02
  • this was the problem. im using Cywig to do that. i didnt realized was on windows line ending. Thank you a lot. Commented Sep 28, 2022 at 9:05
  • 1
    @macieira Good! If this solves your issue, please consider accepting the answer. Accepting an answer marks the issue as resolved. Commented Sep 28, 2022 at 18:55