ByTekLab
  • Home
  • Acronyms
  • Cheat-Sheets
  • User Manuals
Linux

How to find strings in files in Linux

Hector Perez

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 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
Hector Perez 16 Jul 2025

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
Hector Perez 06 May 2025
Ethernet

Ethernet

What is Ethernet? Ethernet is the most common wired networking technology used in homes, offices, and data centers. It allows computers and other devices to communicate over a local area network (LAN) using cables and standardized protocols. Ethernet Cable Wiring Standards Ethernet cables use twisted pairs of wires to carry
Hector Perez 12 Apr 2025
ByTekLab © 2025. Powered by Ghost