The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #4 (permalink)  
Old 03-17-2009
curleb curleb is online now
Registered User
  
 

Join Date: Mar 2008
Location: Here, in my Ivory Tower...
Posts: 68
for one, wouldn't either less or more (or even view) serve better than cat? I'm assuming it's more of an interactive session you're looking for...? While find does allow for its own -exec parameter, xargs is faster by a long-shot.

However, it reads as though your problem is more so with the terminal than the shell commands...

Quote:
find command works correctly and when I copy and paste the output of that with a preceeding 'cat'
Have you tried to wrap the whole mess into a simple script like the following:

Code:
for item in $(find . -type f -name "developer.txt" ) ;do cat $item ;done
This will just do a massive screen dump, which I doubt is what you'd want... Swapping in other utils, like less, more or view will retain some composure and allow you to view and/or exit the file(s) individually.