[SOLVED] [Kali Linux] How do i split a 15.7GB text file into 3 parts also...
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[Kali Linux] How do i split a 15.7GB text file into 3 parts also...
On kali, how do i split a 15.7gb text file into 3 parts ? Also when i split the text file i don't want words to be incomplete from the split. Please help on how to exactly do it. Writing the exact commands to my specific situation would help me out a lot. Thanks in advance.
Welcome to LQ!
It is usual to expect that you demonstrate some attempt to solve your problem when posting at LQ, rather than just asking to be fed a solution.
However,
Get a count of the number of lines in the file with
Code:
wc -l <filename>
Create files with
Code:
sed -n X,Yp <filename> > <outputfile>
where X and Y are the line numbers to start and stop splitting.
Welcome to LQ!
It is usual to expect that you demonstrate some attempt to solve your problem when posting at LQ, rather than just asking to be fed a solution.
However,
Get a count of the number of lines in the file with
Code:
wc -l <filename>
Create files with
Code:
sed -n X,Yp <filename> > <outputfile>
where X and Y are the line numbers to start and stop splitting.
First of all, thank you for welcoming me.
Secondly, i didn't understand. I've read a handful of posts regarding my situation and none of them helped me quite understand this complex issue, this is why i wanted to be "fed" the answer. It's been 2 days for me trying to figure this out but unfortunately, none of the posts including yours were comprehensive enough for me. I usually learn by doing rather than being given hints and/or examples. Thanks for trying though.
The commands in post #2 are meant to be typed in a terminal window opened in the directory containing the file that you wish to split. You will need to provide the filename of the file you wish to split, in place of <filename>. You will also need to provide the filename(s) of the file(s) that you wish to contain the output, in place of <outputfile>.
An example session where the input filename is ifile.txt
Code:
bash-4.3$ wc -l ifile.txt
592 ifile.txt
bash-4.3$ sed -n 1,200p ifile.txt > ofile1.txt
bash-4.3$ sed -n 201,400p ifile.txt > ofile2.txt
bash-4.3$ sed -n 401,592p ifile.txt > ofile3.txt
you are aware that Kali is a special purpose operating system
( with really one function )
a os that is meant to be used BY network security EXPERTS
experts that have at least a masters degree ( or equivalent in real world experience)
the normal Kali user ( the users that are the target market ) can from memory wright the documentation all on there own
kali was NEVER designed with the NEW TO LINUX user in mind
( nor with the NEW TO MICROSOFT user )
spliting a text file in "cmd.exe" is about the same as using the linux Bash terminal
And you ARE aware that you are being rude and presumptuous, right ? Listen... we're all here to learn in the end. I don't know split commands because i've never gotten the chance to use them before, so why is it so wrong for me to seek help ?
I've been pentesting for 2 and a half years and have a great understanding of Networking and infoSec. My shell knowledge is decent but could use a little work, hence this thread. But you actually SORELY made me laugh when you said that Kali is only for those who have at least a masters degree in Network Security.. (WAKE UP, most hackers are college dropouts LOL) I don't mean to burst your bubble, but you're an illiterate moron. I'm honestly shocked and appalled at how ignorant and biased you are. I've been using Kali for a couple of months now and I can honestly say that it's the best and most intuitive Linux distro I have ever used.
Unlike you, these other people are actually kind enough to try and help me and I can't even begin to describe how happy I am to see REAL contributions. So don't you dare insult me and try (and fail) to humiliate me publicly, JUST BECAUSE I asked a simple, straight-forward question to LEARN. But no... you decided that you wanna be an ungentlemanly twerp, and enforce negativity upon this thread.
I would also like to inform you that I don't have the time, nor patience to deal with disrespectful individuals such as yourself. So if you were offended, deal with it, as I dealt with your sarcastic and fruitless response.
On kali, how do i split a 15.7gb text file into 3 parts ? Also when i split the text file i don't want words to be incomplete from the split. Please help on how to exactly do it. Writing the exact commands to my specific situation would help me out a lot. Thanks in advance.
Wow,I understand how you feel, but, what John VV stated is true, also in no way rude.
Also allend gave you 2 commands in post #2 & broke it down in post #5.
As far as I can see allends first post, post #2, should have been fine & easier to understand than a man page.
Wow,I understand how you feel, but, what John VV stated is true, also in no way rude.
Also allend gave you 2 commands in post #2 & broke it down in post #5.
As far as I can see allends first post, post #2, should have been fine & easier to understand than a man page.
First and foremost, the help that allend offered me was most appreciated and I am very thankful for his contributions. Don't muddle my words.
Secondly, what johnvv said was PARTLY true (I do admit). However, the rest was complete and utter ridicule and filth. The fact that he thinks that Kali should ONLY be used by individuals who have at least a masters degree in netSec is just half-witted. The fact that he ASSUMES i'm just a demented kid behind a silly little keyboard is just ill-mannered and hurtful regardless of my experience. The fact that he went out of his way to mock me for trying to LEARN is also idiotic and unreasonable. So if you actually agree with him then I have nothing to say to you because the derision was pretty crystal clear and if you don't see it then you really need to learn how civilized people communicate to fully apprehend my predicament.
Lastly... this is not a chatroom, so unless you have any help to offer, please refrain from commenting. Because like I told johnvv before, I don't have the time nor patience to deal with misleading conflicts.
I must apologize for my post as I don't want to be taken as ill-mannered or hurtful, but, I do think that you should really evaluate the replies that you have gotten, even if at the present time you think that they are negative.
All I can say is the basic command line normally would come before pentesting.
I must apologize for my post as I don't want to be taken as ill-mannered or hurtful, but, I do think that you should really evaluate the replies that you have gotten, even if at the present time you think that they are negative.
All I can say is the basic command line normally would come before pentesting.
Thank you and like I said, I have reevaluated the replies I got and I am thankful for any support even if it didn't help me.
I do agree that learning the basic command line before moving on to pentesting is generally the way to go and this is exactly what I did. But as I mentioned before... I never really got the chance to use split commands before and so it became a weakness on my behalf. All I really wanted was help on that particular issue, nothing more, nothing less.
I usually hate getting on forums for support. But sometimes, it feels like i'm cornered and I have no other way to go. Why do I hate going on forums for support ? Well that's pretty self-explanatory. johnvv's reply was quite evident. Another reason would be that people like johnvv... usually trying to start a debate or mock you and make you feel deficient for trying to learn something.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.