[TxMt] Re: Combining files?

Alex Ross tm-alex at rosiba.com
Mon Jul 28 14:34:27 UTC 2008


On Jul 28, 2008, at 4:20 PM, W. Thomas Leroux wrote:

> I have about 45 files I'd like to combine into one, and short of
> opening each one and copy & pasting it into the new one, I don't see a
> clear way to do this in Textmate.
>
> I'm certain there *is* a way, I'm just not seeing it.  Suggestions?

In bash you can do something like this:

for f in $(ls /path/to/files); do cat $f >> /path/to/newfile; done



More information about the textmate mailing list