On Dec 7, 2006, at 8:58 PM, Ted Burger wrote:


I have about 600 small files that I am trying to turn into one big file.

There is a 'mainfolder'
Inside there are 45 'subfolders'
Inside each 'subfolder' are 10 to 20 files

I want all of them merged into a single big file.

In a previous life I think I could have done this from the command line, but alas, it appears that I have slept to many times since then.


Not BBEdit related, but here are a couple of examples that may be helpful. It's difficult to know without more information:

if you are in the directory 'mainfolder' and wish to control the order in which the files are appended:
   find . -type f -name "*.log" | sort | xargs cat > bigfile.txt

You may have to play with the find command (and sort) to get the files appended in the expected order.

if the contents are to be sorted:
   find . -type f -name "*.log" |  xargs cat | sort > bigfile.txt

You can also replace "> bigfile.txt" with "| bbedit" to open a new BBEdit window with the result of your commands.

--bernie

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to