LINKS:

  • Home
  • Main Photo Gallery
  • Members Galleries
  • Contact Us
  • Site News
  • Newsletter
  • Banner Exchange
  • Forums
  • Classifieds
  • Downloads
  • Videos
  • FAQ
  • Articles
  • Links
  • Polls
  • Register
  • Unsubscribe
  • Forget Password
  • Blog

    Search Site:

    Last 5 New Topics
    Subject: Poster:
    Split Files .. Will..
    Search Files .. Will..
    Play DVD (Xine) .. Will..
    Password into P .. Will..
    cp command .. Will..

    Last 10 New Posts
    Topic: Poster:
    Split Files .. Will..
    Search Files .. Will..
    Play DVD (Xine) .. Will..
    Password into P .. Will..
    cp command .. Will..
    Backup To CD .. Will..
    Aliases (bash) .. Will..
    Test Post .. demo..

    67228

  • Showing Split Files Posts

    All Users 1 || Member(s) 0
    Welcome Guest, please signup or Login. It is free!

    [Forum Subscriptions] [Forum Feeds]

    Forum Search:

    Forum Index -> Linux Help  Change Number of Posts Shown

    1

          

    Posts:
    Posted: 2018-01-21 08:16:51
    Will
    Post Count: 8
    Signed Up: 01/15/18


    Say you have a file named "bu.tar.gz" and the size is 3MB and the size you want them to be is 1M a piece. This is what you do:

    Make a directory, it is easier to manage.
    [user@computer ~]$ mkdir bu_split

    Issue the split command
    [user@computer ~]$ split --bytes=1m bu.tar.gz ./bu_split/split
    The above will split the bu.tar.gz into 1M files named split

    To put the files back together do the following:
    Change to the directory
    [user@computer ~]$ cd bu_split

    Issue the command to put it all together
    [user@computer bu_split]$ cat * > bu.tar.gz
    That will put it all back together the way it was!

    Pretty slick command.

    Here is the --help output:
    Usage: split [OPTION] [INPUT [PREFIX]]
    Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default
    PREFIX is `x'. With no INPUT, or when INPUT is -, read standard input.

    Mandatory arguments to long options are mandatory for short options too.
    -a, --suffix-length=N use suffixes of length N (default 2)
    -b, --bytes=SIZE put SIZE bytes per output file
    -C, --line-bytes=SIZE put at most SIZE bytes of lines per output file
    -d, --numeric-suffixes use numeric suffixes instead of alphabetic
    -l, --lines=NUMBER put NUMBER lines per output file
    --verbose print a diagnostic to standard error just
    before each output file is opened
    --help display this help and exit
    --version output version information and exit

    SIZE may have a multiplier suffix: b for 512, k for 1K, m for 1 Meg.
    ----------------------------------------


    User Info:

    Forum Index -> Linux Help

    1

          

    http://code-heads.com/feeds/forum.php 

    Forum Search:

    PAGES:

  • Hosting

    Total Photos: 0

    Forum Posts: 8

    Total Members: 1
    Newest Member: Will

  • PLEASE READ OUR COPYRIGHT MESSAGE!!!!
    || Home | Contact Us ||

    Portal System By Will W. Copyright © 2001 - 2018. All Rights Reserved!!!