grep on all files with dedicated suffix in a directory?

Status
Not open for further replies.

davyzhu

Advanced Member level 1
Joined
May 23, 2004
Messages
494
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Location
oriental
Activity points
4,436
Hi all,

I am new to Unix.
I want to grep string "SCJ" on all files with dedicated suffix (*.txt file) in a directory.
Suppose I have cd to the directory, and I type "grep -r SCJ *.txt". But it show no match. Please show me some suggestions.

BTW, my environment is Solaries.

Thanks in advance!

Best regards,
Davy
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…