The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-30-2008
learnbash learnbash is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 96
how to get file name

One question pls advice,

I have 100 files in some file there is written character "password=abcd". so i will do this

# cat *.* |grep "password=abcd" i think it will show but i dont know which file have this thing written how do i know that where that thing is written in 100 files, can i get the name of file.


pls advice.


Thanks,
bash