Computing.Net > Forums > Unix > Moveing content of files into file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Moveing content of files into file

Reply to Message Icon

Name: fido
Date: February 5, 2007 at 20:40:15 Pacific
OS: Solaris
CPU/Ram: 1
Product: 21
Comment:

Hello.. I have huge a mount of files that i need to move their contents into one big file.. how do I do that?

Thanks




Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: February 6, 2007 at 06:46:45 Pacific
Reply:

Assuming that all my files are in the mydir directory:

#!/bin/ksh

find mydir -type f -print |while read file
do
cat "$file" >> bigfile
done


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Moveing content of files into file

Insert contents of file into variab www.computing.net/answers/unix/insert-contents-of-file-into-variab/7675.html

update the contents of a file in Un www.computing.net/answers/unix/update-the-contents-of-a-file-in-un/5963.html

sed dropping last line of file www.computing.net/answers/unix/sed-dropping-last-line-of-file/5125.html