Search Results

Search: Posts Made By: Carl2013
3,550
Posted By Carl2013
Thanks again for guiding me through this. ...
Thanks again for guiding me through this.

Here's my original grep:


gunzip -c L:\System1\SailLogger_20071019* L:\System2\SailLogger_20071019* L:\System3\SailLogger_20071019* | grep 35=Order...
2,301
Posted By Carl2013
Thanks. Not sure how to use this code: $...
Thanks. Not sure how to use this code:


$ cat x.dat75=20130130;60=074338;61=985;511=55473883;452=115439;62=196;267=1;$ sed -n 's/.*\(60=[0-9]*\).*\(511=[0-9]*\);.*$/\1 \2/p' x.dat60=074338...
2,301
Posted By Carl2013
Thanks again. When I run this: U:\>gunzip...
Thanks again. When I run this:

U:\>gunzip -c L:\System1\SailLogger_20130130* | grep 35=SailOrderEntry

I get results like this:
...
2,301
Posted By Carl2013
Thanks again. Tried this: U:\>gunzip -c...
Thanks again. Tried this:

U:\>gunzip -c L:\System1\SailLogger_20130130* | awk -F\; '{for(i=1;i<=NF;i++) { if($i ~ /^
60/) print $i; if($i ~ /^511/) print $i; }}'

And received this error:
...
2,301
Posted By Carl2013
Thank you. I tried this in a windows cmd: ...
Thank you. I tried this in a windows cmd:

U:\>gunzip -c awk -F\; '{for(i=1;i<=NF;i++) { if($i ~ /^60/) print $i; if($i ~ /^511/) print $i; }}'L:\System1\SailLogger_20130130*...
3,550
Posted By Carl2013
Thanks you. I tried this: U:\>for %C in...
Thanks you. I tried this:

U:\>for %C in (L:\System1\SailLogger_20130130*.* L:\System2\SailLogger_20130130*.* L:\Syst
em3\SailLogger_20130130*.*) do ( gunzip %C | grep 35=SailErrorNotice )

It...
2,301
Posted By Carl2013
Grep Question
My grep returns a row of data like this:

75=20130130;60=074338;61=985;511=55473883;452=115439;62=196;267=1;

Is there a way for the grep to only return 60="something" and 511="something" ?
...
3,550
Posted By Carl2013
Thanks. Is it possible to do this in the windows...
Thanks. Is it possible to do this in the windows CMD ?
3,550
Posted By Carl2013
This is for windows.
This is for windows.
3,550
Posted By Carl2013
Hi. Yes. Each path has a differnt log...
Hi. Yes. Each path has a differnt log (System1,2,3) that follows the same naming convention.
3,550
Posted By Carl2013
Hi Thanks for replying. Yes these logs are...
Hi Thanks for replying. Yes these logs are updating every 30 seconds. I tried this grep -

gunzip -c L:\System1\SailLogger_20130118* L:\System2\SailLogger_20130118* L:\System3\S...
3,550
Posted By Carl2013
Grep Logs That Are Updating
Hello all. I am new to this forum and also very new to using grep - so please excuse me if this question is not in the correct forum and/or is not pertinent to this website.

I use greps like...
Showing results 1 to 12 of 12

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