Find the answer to your Linux question:
Results 1 to 5 of 5
I'm exploring GlusterFS,some where I read , large files are split using "Split translator"..and could be merged again using dd command. So my question is : how to merge it? ...
  1. #1
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Question Is it possible to merge files using dd command?

    I'm exploring GlusterFS,some where I read , large files are split using "Split translator"..and could be merged
    again using dd command.

    So my question is : how to merge it?

    I tried this

    #cat file1

    This is file 1

    #cat file2

    This is file 2

    #dd if=file1 of=file3
    #dd if=file2 of=file3
    But clearly dd command overwrite the content from file1 ,with file2 contents and creates file3.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    452
    the usual command is

    "split <filename>"

    then use cat to restore

    "cat xaa xab xac xad xae xaf > <filename>"
    the sun is new every day (heraclitus)

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    thanks tpl. Could it be done using dd command.? As I said there are big files ..i also read some where about dd'ing files ...I search and get back with answers (If any)
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  4. #4
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    351
    Never used but read:
    Unix dd command and image creation
    go down to paragraph titled:
    "Getting around file size limitations using split" might be what you want.

  5. #5
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    Thanks for the link..i'll check it, Lostfarmer
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...