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? ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,763

    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.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    478
    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,763
    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)
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    362
    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.

  6. #5
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,763
    Thanks for the link..i'll check it, Lostfarmer
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Posting Permissions

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