joining a bunch of files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you[ve already decrypted and unzipped the files you can do this:

ls | xargs cat {} \;

ls sorts it's output alphabetically by default. xargs takes the output from 
ls as it's argument list and perfprms cat on each.

At 03:51 PM 11/30/01 -0500, you wrote:
>Join, meaning the relational database utility?
>
>Even if that can do this, and I'm not convinsed that it can, that is a lot
>of learning for a simple problem--from one readthrough of the man page, I
>have no clear picture of what this is even supposed to acomplish, let
>alone how to make it do things for which it does not appear to be
>intended.
>
>
>On Fri, 30 Nov 2001, dreamwvr@dreamwvr.com wrote:
>
> > man join
> > On Fri, Nov 30, 2001 at 01:57:15PM -0600, Brent Harding wrote:
> > >             I encrypted a zip archive I had with pgp. Now, I have 
> files with
> > > extensions of a01 to a99 that have to be joined in order from 01 to 
> 99 so I
> > > can decrypt the whole thing. Decrypting only the first doesn't return
> > > everything, so it must be split, used the a option, and rezipped the 99
> > > files to another archive so I wouldn't have 99 files laying around. 
> How do
> > > I put the files together to make one huge file without having to type all
> > > the echo <file.a01 >> file
> > > echo <file.a02 >> file
> > >  and so on up to 99?
> > > There must be a copy a range, like echo <file.a01-a99 >> file, or 
> something
> > > on that order. Using * won't necessarily copy them in numeric order 
> though.
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > 
> > > Blinux-list@redhat.com
> > > https://listman.redhat.com/mailman/listinfo/blinux-list
> >
> >
> >
> > _______________________________________________
> > 
> > Blinux-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/blinux-list
> >
>
>
>
>_______________________________________________
>
>Blinux-list@redhat.com
>https://listman.redhat.com/mailman/listinfo/blinux-list


--
John G. Heim
WiscINFO Customer Service Coordinator
Division of Information Technology
jheim@doit.wisc.edu
608-262-9887





[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]