grep -f not working with filegrep: display filename once, then display context with line numbersGrep multiple...

Is art a form of communication?

Brute-force the switchboard

How does mathematics work?

Nilpotent elements of Lie algebra and unipotent groups

Redirection operator, standard input and command parameters

How can electronics on board JWST survive the low operating temperature while it's difficult to survive lunar nights?

Can two waves interfere head on?

Improving an O(N^2) function (all entities iterating over all other entities)

ESTA Travel not Authorized. Accepted twice before!

How far off did Apollo 11 land?

How to hide your own body?

Do pedestrians imitate automotive traffic?

Aren't all schwa sounds literally /ø/?

Why should fork() have been designed to return a file descriptor?

ISCSI, multiple initiaros for the same lun

How to tell readers that I know my story is factually incorrect?

She told me that she HAS / HAD a gun

I want light controlled by one switch, not two

Counting multiples of 3 up to a given number

Does a hash function have a Upper bound on input length?

Where can I find standards for statistical acronyms and whether they should be capitalized or lower case?

P-adic functions on annuli

What does a Nintendo Game Boy do when turned on without a game cartridge inserted?

Are there foods that astronauts are explicitly never allowed to eat?



grep -f not working with file


grep: display filename once, then display context with line numbersGrep multiple pattern negative matchAix grep wildcard not workingWhy does echo “a']” | grep -E “'” not match?How are multiple patterns specified in a file with `-f` to `grep` working together?grep grouping with wildcards prints whole file without matchinggrep getting confused by filenames with dashesfind file newermt and grep file content not workingComparing two files linewise and if pattern of file 1 is not found (fully or partially) in file 2 then print line of file 1Why does grep print out unexpected output when file contains carriage returns?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I have a file with having patterns separated by new line characters.
which matches the patterns i want to find from a file.



but when i run command



grep -f patterns_file words_file


It gives no output.I am confused.
What can be the solution for this problem










share|improve this question





























    0















    I have a file with having patterns separated by new line characters.
    which matches the patterns i want to find from a file.



    but when i run command



    grep -f patterns_file words_file


    It gives no output.I am confused.
    What can be the solution for this problem










    share|improve this question

























      0












      0








      0








      I have a file with having patterns separated by new line characters.
      which matches the patterns i want to find from a file.



      but when i run command



      grep -f patterns_file words_file


      It gives no output.I am confused.
      What can be the solution for this problem










      share|improve this question














      I have a file with having patterns separated by new line characters.
      which matches the patterns i want to find from a file.



      but when i run command



      grep -f patterns_file words_file


      It gives no output.I am confused.
      What can be the solution for this problem







      grep regular-expression wildcards pattern-matching






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 13 mins ago









      Dhiresh BudhirajaDhiresh Budhiraja

      1033 bronze badges




      1033 bronze badges






















          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f531408%2fgrep-f-not-working-with-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f531408%2fgrep-f-not-working-with-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...