Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

locate / cat question 2

Status
Not open for further replies.

percent

IS-IT--Management
Apr 27, 2004
176
0
0
US
How would this be done:
find all of the .forward files then display the contents

locate .forward #This will find all of the .forward files
but how would I beable to display all of the contents
is there a list type command that I can feed the "locate .forward" output to then execute a command with each line of data such as "cat"

this question is more about the list question than the .forward question - I thought that if I knew how to execute a command for each line of data - that is would come in handy often


Any help would be greatly appreciated


%, 2004
 
or to be more exact
#find / -name .forward -exec cat {} \;

/Roger
 
Thank you very much - both of you I will research the find command -
again thank you

%, 2004
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top