Create an Account
username: password:
 
  MemeStreams Logo

MemeStreams Discussion

search


This page contains all of the posts and discussion on MemeStreams referencing the following web page: Split a text file in half (or any percentage) on Ubuntu Linux :: the How-To Geek. You can find discussions on MemeStreams as you surf the web, even if you aren't a MemeStreams member, using the Threads Bookmarklet.

Split a text file in half (or any percentage) on Ubuntu Linux :: the How-To Geek
by Lost at 10:54 pm EDT, Mar 28, 2009

If you have an unwieldy text file that you are trying to process, splitting it in sections can sometimes help processing time, especially if we were going to import a file into a spreadsheet. Or you might want to just retrieve a particular set of lines from a file.

Enter split, wc, tail, cat, and grep. (don't forget sed and awk). Linux contains a rich set of utilities for working with text files on the command line. For our task today we will use split and wc.


 
 
Powered By Industrial Memetics