Split It

 PREAMBLE

Tutorial expresses the author's subjective ideas and conform to AAL license.


Description
Used for spliting file into pieces.


Intro
Let's prepare first some files for our use.
Firstly we will need a text file - AAL License - par example. An audio file - some Classics -  let's say. And a short video file, or not so short video file; it's at your demand.
Download all this in /tmp folder.

Next Level
Switch to /tmp by 
$ cd /tmp & pwd

Make some directories
$ mkdir aud vid img txt

Move your files accordingly.
$ echo Do This Yourself

Move to one of them, aud let's say.
Now let's split it some pieces
$ split -b 1m test.flac
$ ls -lh
$ cp -v xaa fragment.flac
$ mplayer fragment.flac
$ rm -v *.flac
$ ls

To join pieces together use
$ cat xa* > entire.flac
$ mplayer entire.flac


Now let's move to txt folder
$ cd ../txt & pwd

And split aal.txt in files by 9 lines each
$ split -l 9 aal.txt & ls
$ wc -l xab
$ file xac
$ cat xac

Now, let's devide big video files in 5 pieces
$ cd ../vid
$ ls
$ split -n 5 star_trails.mp4 & ls


Last thoughts
Be shure that I will update tutorial in the future. So, stay on tune. And, in case it was useful, share please with your fellows or comment something regarded the subject.
For donations use that link

Comments