Search Results

Search: Posts Made By: elinenbe
3,400
Posted By elinenbe
Yeah. Cool. Thanks!
Yeah. Cool. Thanks!
3,400
Posted By elinenbe
help splitting a file into multiple files in bash
I have a file that logs multiple sessions. What I would like to do is split this file inclusive of the lines that include "starting session" and "shutting down" and ignore the data before and after...
3,748
Posted By elinenbe
Sorry, I should have been more specific. The...
Sorry, I should have been more specific. The starting session lines all end with something like:

20090409 000122 - BD0 - Order 123 starting session with client 12 port 34
20090409 000123 - EF0 -...
3,748
Posted By elinenbe
grep'ing and sed'ing chunks in bash... need help on speeding up a log parser.
I have a file that is 20 - 80+ MB in size that is a certain type of log file.

It logs one of our processes and this process is multi-threaded. Therefore the log file is kind of a mess. Here's...
3,760
Posted By elinenbe
Thanks. Real slick. Much easier to read and...
Thanks. Real slick. Much easier to read and understand too.
3,760
Posted By elinenbe
Here's the code I currently have
awk '/^Alerts/,/^Other Info/' myfile >myfile1
sed 'N;$!P;$!D;$d' myfile1 > myfile2
sed '1d' myfile2 > myfile3
if [[ `cat myfile3 | grep -E 'Password Incorrect|Login Error'` ]]
then
DO CODE...
3,760
Posted By elinenbe
more of the input would look something like: ...
more of the input would look something like:

Time
12:34 PM

Alerts
Password Incorrect
Login Error
Another Error
Another Error 2

Other Info
Memory Status 12
CPU Status 12.44
...
3,760
Posted By elinenbe
BASH: Grepping/sedding/etc out part of a file... (from one word to 'blank' line)
I have a file that lists data about a system. It has a part that can look like:

the errors I'm looking for with other errors:

Alerts
Password Incorrect
Login Error
Another Error
...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 10:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy