i have log files in the current structure:
STDAT #668324 CSPEC --Visitor-- IP2LOC:N/A Time:0900 DOW:1 OS:Windows NT 5.1 Browser:Firefox 3.5 IP:126.96.36.199
i know linux is probably king of command line tool, so is their a tool such as "getlines" or something so i can extract lines from text file? the only lines i need are "OS" and "Browser", and i want to add them all to 1 single txt file for graphing. what command can i use to take those 2 lines from this txt file? I have thousands of files like this from my website which are created by PHP, but since site is now bigger, I will be using a database, but i do not want these files to go to waste since this information is still useful.