On 2012-11-16, Ant wrote:
> Hello, 
> 
> this one is something I need help in. Say I have thousands of
> files and I wanted to concatenate them all into one. THis is easy
> to do, I can just do it outside Vim using bash script "cat * >
> allfiles.txt" or something. 
> 
> But how would you concatenate heaps of files together, separating
> them by its filename or some unique thing like
> "======================". 

I would use head:

    head -999999 * > allfiles.txt

The contents of each file will be preceded by a line like this:

    ==> file.txt <==

Regards,
Gary

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to