Results 1 to 6 of 6
  1. #1
    Join Date
    May 2003
    Posts
    852

    Splitting abig tar.gz file

    Hi

    how can we split a big tar.gz file into small files using SSH ??

  2. #2
    Join Date
    Jun 2003
    Posts
    976
    man split
    NAME
    split - split a file into pieces

    SYNOPSIS
    split [OPTION] [INPUT [PREFIX]]

  3. #3
    Join Date
    May 2003
    Posts
    852
    I didn't understand !

  4. #4
    Join Date
    Jun 2003
    Posts
    976
    lets say you have a file called "big_file"
    and its 10mb, you want to split it in chunks of 1mb and
    the files should have the prefix "big_file-", so you run
    Code:
    split -b 1m big_file big_file-
    you end up with files "big_file-aa" till "big_file-aj"

  5. #5
    Join Date
    May 2003
    Posts
    852
    yha thanks

    but how can I regain them (return them into one original file)
    ?

  6. #6
    Join Date
    Jun 2003
    Posts
    976
    maybe with
    Code:
    cat big_file-* > big_file

Posting Permissions

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