par2 files ?

email.listen at googlemail.com email.listen at googlemail.com
Tue Jun 19 00:16:22 UTC 2007


On Tue, 19. June 2007 00:33:08 Rick wrote:
> On Monday 18 June 2007 2:35:38 pm James Tappin wrote:
> > How about:
> > cat file.par2.?? > file.par2
> > most split files are simple sliced up into blocks for convenience of
> > downloading (though it's not as prevalent as it used to be).
>
> wow, never thought of this?
> so how does one combined all four files into one..
>
> file.par2.01
> file.par2.02
> file.par2.03
> file.par2.04
>
> cat file.par2.01 > file.??????????? ( I don't know on this)
Watchout!
Naming a file 'file.???????????' is not a good idea!

Given there would be two files named 'file.???' and 'file.001' a:

 rm file.???

will delete both files, 'file.???' _and_ 'file.001'.

So if you want to delete the file named 'file.???' you have to enclose it ("") 
like this:

 rm "file.???"


It's just that simple:
 cat file.par2.?? > file.total


If there are a lot of files, e.g. 100's of them you might better use the 
following:

 for file in file.par2* ; do  cat $file > file.total ; done
 

regards,
thomas




More information about the ubuntu-users mailing list