LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2011, 08:12 AM   #1
AngryBeast
Member
 
Registered: Jul 2011
Posts: 58

Rep: Reputation: Disabled
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?
 
Old 07-20-2011, 08:17 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
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?
 
Old 07-20-2011, 08:20 AM   #3
AngryBeast
Member
 
Registered: Jul 2011
Posts: 58

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
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 !
 
Old 07-20-2011, 08:23 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Quote:
Originally Posted by AngryBeast View Post
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
 
Old 07-20-2011, 08:29 AM   #5
AngryBeast
Member
 
Registered: Jul 2011
Posts: 58

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sycamorex View Post
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 to split:
split -l linenumbers text.txt

LONG LIFE http://www.linuxquestions.org
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a colorful text file? m4rtin Linux - Software 1 07-20-2010 11:03 AM
how to make several columns in a text file of different lengths the same length Mike_V Programming 3 04-23-2009 10:17 PM
How to parse text file to a set text column width and output to new text file? jsstevenson Programming 12 04-23-2008 03:36 PM
How do I make a text file in Bash? RAdams Programming 2 01-14-2007 06:56 AM
How to make text file into patch? dtee Linux - Software 2 01-17-2004 11:30 AM


All times are GMT -5. The time now is 04:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration