how to find a text in a file in UNIX without using grep commandbash find xargs grep only single occurenceHow...

What is this 4 sharp symbol and what does it mean?

Why force the nose of 737 Max down in the first place?

Why is it "on the inside" and not "in the inside"?

Why is の所 used after ドア in this sentence?

How do you pronounce "Hain"?

How likely is fragmentation on a table with 40000 products likely to affect performance

Summoning A Technology Based Demon

Do the books ever say oliphaunts aren’t elephants?

Telling manager project isn't worth the effort?

Is there an antonym(a complementary antonym) for "spicy" or "hot" regarding food (I DO NOT mean "seasoned" but "hot")?

Why does Canada require mandatory bilingualism in a lot of federal government posts?

If an arcane trickster rogue uses his mage hand and makes it invisible, does that mean anything the hand picks up is also invisible?

Can I change the license of a forked project to the MIT if the license of the parent project has changed from the GPL to the MIT?

Why is it considered acid rain with pH <5.6?

ECDSA: Why is SigningKey shorter than VerifyingKey

Why did some Apollo missions carry a grenade launcher?

Japanese reading of an integer

(3 of 11: Akari) What is Pyramid Cult's Favorite Car?

Introducing Tetronogram!

Is it safe if the neutral lead is exposed and disconnected?

If Trump gets impeached, how long would Pence be president?

Is it okay for me to decline a project on ethical grounds?

8086 stack segment and avoiding overflow in interrupts

Adopting a feral cat



how to find a text in a file in UNIX without using grep command


bash find xargs grep only single occurenceHow to grep on source code without catching commentsExclude files that have very long lines of text from grep outputGrep : Find all possible cases of a word in text filegrep variable-length optional textStrings not outputting text found using grepgrep. Find multiple AND patterns in any order using single conditionGrep can't find end of line in DOS format text file?Pipe results of grep into findUsing grep after using find to get the files






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







0















Is there any other way to find a text in a way without grep command from multiple files.



This was asked in one of my interview but I could find a possible solution for this question.










share|improve this question







New contributor



Tanu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




























    0















    Is there any other way to find a text in a way without grep command from multiple files.



    This was asked in one of my interview but I could find a possible solution for this question.










    share|improve this question







    New contributor



    Tanu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      0












      0








      0








      Is there any other way to find a text in a way without grep command from multiple files.



      This was asked in one of my interview but I could find a possible solution for this question.










      share|improve this question







      New contributor



      Tanu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      Is there any other way to find a text in a way without grep command from multiple files.



      This was asked in one of my interview but I could find a possible solution for this question.







      grep






      share|improve this question







      New contributor



      Tanu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      Tanu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      Tanu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 57 mins ago









      TanuTanu

      1




      1




      New contributor



      Tanu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Tanu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



























          1 Answer
          1






          active

          oldest

          votes


















          3














          Numerous unix commands incorporate the functionality of grep, allowing a grep-like command to be implemented. Some obvious examples:



          awk:



          awk '/pattern/'


          sed:



          sed -n -e '/pattern/p'


          perl:



          perl -n -e 'print if (/pattern/)'





          share|improve this answer


























          • Ooh, ex with g/re/p!

            – muru
            51 mins ago














          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
          });


          }
          });






          Tanu is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f532841%2fhow-to-find-a-text-in-a-file-in-unix-without-using-grep-command%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          Numerous unix commands incorporate the functionality of grep, allowing a grep-like command to be implemented. Some obvious examples:



          awk:



          awk '/pattern/'


          sed:



          sed -n -e '/pattern/p'


          perl:



          perl -n -e 'print if (/pattern/)'





          share|improve this answer


























          • Ooh, ex with g/re/p!

            – muru
            51 mins ago
















          3














          Numerous unix commands incorporate the functionality of grep, allowing a grep-like command to be implemented. Some obvious examples:



          awk:



          awk '/pattern/'


          sed:



          sed -n -e '/pattern/p'


          perl:



          perl -n -e 'print if (/pattern/)'





          share|improve this answer


























          • Ooh, ex with g/re/p!

            – muru
            51 mins ago














          3












          3








          3







          Numerous unix commands incorporate the functionality of grep, allowing a grep-like command to be implemented. Some obvious examples:



          awk:



          awk '/pattern/'


          sed:



          sed -n -e '/pattern/p'


          perl:



          perl -n -e 'print if (/pattern/)'





          share|improve this answer













          Numerous unix commands incorporate the functionality of grep, allowing a grep-like command to be implemented. Some obvious examples:



          awk:



          awk '/pattern/'


          sed:



          sed -n -e '/pattern/p'


          perl:



          perl -n -e 'print if (/pattern/)'






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 54 mins ago









          cascas

          40.8k4 gold badges58 silver badges109 bronze badges




          40.8k4 gold badges58 silver badges109 bronze badges
















          • Ooh, ex with g/re/p!

            – muru
            51 mins ago



















          • Ooh, ex with g/re/p!

            – muru
            51 mins ago

















          Ooh, ex with g/re/p!

          – muru
          51 mins ago





          Ooh, ex with g/re/p!

          – muru
          51 mins ago










          Tanu is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Tanu is a new contributor. Be nice, and check out our Code of Conduct.













          Tanu is a new contributor. Be nice, and check out our Code of Conduct.












          Tanu is a new contributor. Be nice, and check out our Code of Conduct.
















          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%2f532841%2fhow-to-find-a-text-in-a-file-in-unix-without-using-grep-command%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...