![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Expert Programmer
|
Quickly select random lines
I have a 100MB file with (I suspect) millions of lines of text in it. I need a way to select 100 random lines and place them in another file. I don't want to spend a lot of time writing a Python script to do this, and I'm not sure how well such a script would operate on such a large file. Does anyone know of a Unix command that could do this? If not, how would you go about this? Thanks.
|
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Random "Letter" Generator | kewlgeye | Java | 19 | May 13th, 2008 10:52 AM |
| random Numbers in openGL | csrocker101 | C++ | 5 | Apr 24th, 2007 9:02 PM |
| time Delays and Random functions | Markphaser | C++ | 17 | Feb 21st, 2006 4:48 AM |
| Random Number & Average Problem | Hadrurus | Java | 6 | Aug 15th, 2005 2:08 PM |
| non repeating random number generation | gencor45 | C# | 2 | Feb 9th, 2005 1:11 AM |