1826230 Members
4899 Online
109692 Solutions
New Discussion

Re: Recursive Cat

 
morganelan
Trusted Contributor

Recursive Cat

Dear unix Gurus,
How to cat files that reside on each directory under /tcb/files/auth and put the output to a file.Thanks in advance.
Kamal Mirdad
4 REPLIES 4
Muthukumar_5
Honored Contributor

Re: Recursive Cat

cat /tcb/files/auth/* > file.out

-Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Recursive Cat

find /tmp/muthu -type f | xargs cat > file.out

-Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: Recursive Cat

# cat `find /tcb/files/auth -type f` >a.out

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
morganelan
Trusted Contributor

Re: Recursive Cat

Thanks
Kamal Mirdad