Toggle navigation
Log in
Sign Up
Log in
Sign Up
Appium
C
C#
C++
Docker
Go
Informatica
Java
JavaScript
Kafka
Numpy
Oracle
Pandas
PHP
Python
R
React Native
Scipy
SFTP
Tableau
Teradata
TGMC
UNIX
Forget_Code.Models.CategoryViewModel
Add a new snippet
AWK
1
Choose Category
grep -r in UNIX
Forget Code
UNIX
grep -r
You can search recursively i.e. read all files under each directory by using grep -r.
Syntax:
grep -r [search string] [directory]
Example:
Consider the following contents in 1.txt and 2.txt
1.txt:I am coming from forget code
2.txt:code is great
grep-r 'code' /var/root/*
Output:
/var/root/1.txt:I am coming from forget code
/var/root/2.txt:code is great
Tags for grep -r in UNIX
recursive search using grep
unix
which
grep r unix
Grep r coding
Contribute to Forget Code, help others.
Add snippet