Ad

How To Send Multiple Files To A Directory?

- 1 answer

I am spliting a song into several parts using split as follows:

split --bytes=1000000 Sleep.mp3 size

and I get several parts like this:

sizeaa 

sizeab

sizeac

sizead

the issue comes when I try to send this files generated to a directory called song like this:

split --bytes=1000000 Sleep.mp3 size > song/

I get:

-bash: song/: Is a directory

I would like to appreciate a way to achieve this.

Ad

Answer

Just put the directory as part of the output file

split --bytes=1000000 Sleep.mp3 song/size
Ad
source: stackoverflow.com
Ad