This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes How can we findout which all files reference to a .config file in a checked out project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "How can we findout which all files reference to a .config file in a checked out project " Watch "How can we findout which all files reference to a .config file in a checked out project " New topic
Author

How can we findout which all files reference to a .config file in a checked out project

Gangam Mekerira
Greenhorn

Joined: Sep 07, 2011
Posts: 4

I'm very new to unix
I have a checked project , there exists a file called xxx.config .
now my task is to find all the files in the checked out project which references to this xxx.config file.
how do i use grep or find command .
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11465
    
  94

You almost certainly want to find out about the man pages. They will give you documentation on how to run most standard commands on Unix, including grep.

Take a look at that page, and try to work out what a suitable grep command would be - we can then help you from that point onwards. You should not need the find command (unless this is a school project (for some reason, some schools insist on using the two in combination, even though it is redundant and bad practice)).


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Gangam Mekerira
Greenhorn

Joined: Sep 07, 2011
Posts: 4
Thank you
 
GeeCON Prague 2014
 
subject: How can we findout which all files reference to a .config file in a checked out project