This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 11404
    
  81

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
 
 
subject: How can we findout which all files reference to a .config file in a checked out project
 
Similar Threads
Creating a Jar with External Jars
Checkout from CVS using Maven
IntelliJ Idea saves my you know what.
java: Cannot find symbol
System can't find file!!!(URGENT)