LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how can i make from 1 text file 2 ! (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-make-from-1-text-file-2-a-892710/)

AngryBeast 07-20-2011 07:12 AM

how can i make from 1 text file 2 !
 
i have a big .txt and i wanna make 2 .txt from that ! exists any command?

TobiSGD 07-20-2011 07:17 AM

What do you mean with making two of that file? Do you want to have a complete copy? Or do you want to split the file? If you want to split the file, which criteria will you use to determine the point where to split the file?

AngryBeast 07-20-2011 07:20 AM

Quote:

Originally Posted by TobiSGD (Post 4420039)
What do you mean with making two of that file? Do you want to have a complete copy? Or do you want to split the file? If you want to split the file, which criteria will you use to determine the point where to split the file?


Yes I want to split! The text file have 20mb and i wanna make 2 text file 10mb!


PS: Sorry for my bad english !

sycamorex 07-20-2011 07:23 AM

Quote:

Originally Posted by AngryBeast (Post 4420042)
Yes I want to split! The text file have 20mb and i wanna make 2 text file 10mb!


PS: Sorry for my bad english !

See the manual of the 'split' command. It lets you split files based on the size.
http://linux.die.net/man/1/split

AngryBeast 07-20-2011 07:29 AM

Quote:

Originally Posted by sycamorex (Post 4420045)
See the manual of the 'split' command. It lets you split files based on the size.
http://linux.die.net/man/1/split

Thanks very much i done my job :D to split:
split -l linenumbers text.txt

LONG LIFE http://www.linuxquestions.org :D


All times are GMT -5. The time now is 10:15 PM.