Search Results

Search: Posts Made By: nybbles2bytes
3,101
Posted By nybbles2bytes
I tried your first example of grep and it runs...
I tried your first example of grep and it runs much slower than the 2nd example, I have no idea why. Anyway, I just reverted back to the 2nd one.

All it working fine now -- thanks!
3,101
Posted By nybbles2bytes
I just chose the 2nd one because it looks...
I just chose the 2nd one because it looks cleaner, I can switch to the first but it really doesn't matter, I'm not dealing with speed issues at this point. They are both great for my purposes.

The...
3,101
Posted By nybbles2bytes
Awesome. I used your second example so this works...
Awesome. I used your second example so this works as desired:#!/bin/awk -f

BEGIN{
#
# LookBack should be something like "1 hour" or "1 day" and is set on the command line with
# -v...
3,101
Posted By nybbles2bytes
I didn't realize that you responded, thanks!...
I didn't realize that you responded, thanks! ...for whatever reason I didn't get the email.

I did something very similar to you because as you surmised it was slow with the shell calls. So, I did...
3,101
Posted By nybbles2bytes
Fair enough. I think I have learned enough to get...
Fair enough. I think I have learned enough to get exactly what I want now. This seems to set the variables exactly as they should be. Let me know if you see anything wrong.

Test output included...
3,101
Posted By nybbles2bytes
I see what you mean by the piping and being a...
I see what you mean by the piping and being a bash script. I actually played with that a bit but didn't get any better results.

Unfortunately I can't get you a better representation of the file...
3,101
Posted By nybbles2bytes
Hi Don, Thanks for the reply. ...
Hi Don,

Thanks for the reply.

Basically what I am doing is looking through an apache rewrite.log file and filtering out lines I don't want. I use awk to pre-filtering the lines by date so that...
3,101
Posted By nybbles2bytes
Help with awk script
I have a one liner awk script and I would like to move it to a file. When I do I can't get it to work.

This is the original one liner:
awk -v RefDate="$(date -d'now-2 second' '+%s')" -v...
Showing results 1 to 8 of 8

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