View Single Post
Old 02-06-2017, 03:22 AM  
Kafka
Confirmed User
 
Kafka's Avatar
 
Join Date: Oct 2002
Location: Holland
Posts: 466
awk is your friend:

awk '/string/ { print }' yourfile -> print every line with "string"

example:
awk '/milf/ { print }' yourfile -> print every line with "milf"
awk '/milf/ { print }' yourfile > to_new_file

You can split a big file in pieces:
split -l 1000 yourfile newfiles (1000 lines )

These are all linux/osx commands. Some like awk are also available for Windows but i am not sure.
Learn awk and you can do almost anything with a file.

But the best is to import the data into a database, learn php/mysql.
Kafka is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote