Skip to content

Hayato Iriumi

Tech Notes of Mine

Day: December 9, 2020

find, xargs and grep

You want to find files that contain certain characters. I found a way to do it and here it is for my note.

find . -name '*.py' -type f | xargs grep -n 'text I wanna look for'

This command looks for Python files that contains ‘text I wanna look for’.

Author adminPosted on December 9, 2020Categories Linux, Mac, Tips and TricksLeave a comment on find, xargs and grep

Recent Posts

  • Uptime
  • Built a PC
  • Copy Drives with rsync on Windows from WSL
  • VPN Server After a Month Usage
  • Text Wrap in Python
  • Uptime
  • May 10, 2022
  • Built a PC
  • May 5, 2022
  • Copy Drives with rsync on Windows from WSL
  • April 18, 2022
December 2020
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Nov   Jan »

Recent Comments

  1. mighty-kr on How to Provision Jenkins on NGINX Reverse Proxy on Docker Container
  2. admin on How to Backup an Instance and Restore on Oracle Cloud Infrastructure
  3. Kleber Vieira de Araujo on How to Backup an Instance and Restore on Oracle Cloud Infrastructure
  4. Kleber Vieira de Araujo on How to Backup an Instance and Restore on Oracle Cloud Infrastructure
  5. admin on How to Install Jenkins Slave as Windows Service

My Japanese Blog

Hayato Iriumi Proudly powered by WordPress