[Discuss] data recovery using Linux
Tom Almey
tomanddeb at shaw.ca
Sat Sep 1 12:02:25 PDT 2007
On Saturday 01 September 2007 11:31, R. Langkamer wrote:
> Remember those 60 pieces I cat'd together? Well somehow I removed the
> partition I used to temporarily store the one big file made from them.
> Now, I still have the 60 pieces, but I'm hoping there is a way to write
> a small quick shell script to do the work for me, I just don't know how.
> I am using bash in Ubuntu 6.10 and all the files are named like
> file-name.001. Seeing as there is only 60 to work with and the first one
> is named like file-name.img, I was thinking I could use a loop in the
> shell script to cat each file in numerical order and append it to the
> end of the .img file. I've googled, but I haven't found anything that
> fits. Any ideas?
>
> Thanks in advance!
$ cat file-name.img file-name.0* > file-name.cat
Tom.
More information about the Discuss
mailing list