joining a bunch of files

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

 



I didn't use xargs, but I did cat `ls | sort` >file.
At 04:33 PM 11/30/01 -0500, you wrote:
>
>What about:
>
>	ls file_prefix_* | sort | xargs cat > final_file
>
>
>Nicolas
>
>
>On Fri, 30 Nov 2001, Brent Harding wrote:
>
>> I've heard of this, but it doesn't appear to be the thing, dos would do it
>> if I copied and typed in all the names, would run out of command line
>> anyway, 255 character limit.
>> 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
>> >
>> >
>> 
>> 
>> 
>> _______________________________________________
>> 
>> Blinux-list@redhat.com
>> https://listman.redhat.com/mailman/listinfo/blinux-list
>> 
>
>
>
>_______________________________________________
>
>Blinux-list@redhat.com
>https://listman.redhat.com/mailman/listinfo/blinux-list
>
>





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