> Command_Prompt_Blog \
  • Home
  • Acronyms
  • Cheat-Sheets
  • User Manuals
Linux

How to find strings in files in Linux

Hec P.

29 Jun 2015

Today I needed to search for a specific string in all files inside a SOAP UI project, you just need to execute the following command:

grep -rnw "getList" /home/SOAPUI_Proj/

Please notice that the text in italics means that the value is variable.

Sources:

  • http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string/
  • http://stackoverflow.com/questions/16956810/finding-all-files-containing-a-text-string-on-linux

Read next

How to Install Speedtest CLI on Fedora

How to Install Speedtest CLI on Fedora

Need to test your internet speed from the command line? The official Speedtest CLI from Ookla lets you measure download, upload, latency, and packet loss directly from your terminal—no browser required. This guide was tested on Fedora 43 but works on any recent Fedora version (38+). Two Different Tools
Claudia 11 Jan 2026
How to Forge a JWT with C#

How to Forge a JWT with C#

When running tests on APIs we need to be able to create tokens that have specific characteristics to make sure the API responds correctly to each test scenario. I developed a C# script that allows me to do just that. very simple, it can be improved and more options can
Hec P. 16 Jul 2025
How to generate 256-bit random hex strings in MacOS

How to generate 256-bit random hex strings in MacOS

The command openssl gives us everything we need. If you run openssl rand -hex 32 you will have an output like this: openssl rand -hex 32 fe2b27f8d12cc51729c6fcf43c8316b156eb86d539330ab8eb9b5641a5569df0 But what happens if we need more than one, say 20. We'll need to run seq 20 | xargs -n1 -I{} openssl
Hec P. 06 May 2025
> Command_Prompt_Blog \ © 2026. Powered by Ghost