Search Results

Search: Posts Made By: sfisk
2,397
Posted By sfisk
Need to remove lines that start with an IP address
Hi,

I keep having to remove lines have an IP address as the second field from my awstats logs, as it makes the processing fail.

Rather than do it individually each time (once or twice a week)...
2,903
Posted By sfisk
It worked, THANKS !
Thanks so much to both of you for your help, saved me lots of trial and error !
2,903
Posted By sfisk
It looks like it should work, butthrows an error
Thanks,

It sure looks like it should work, but it throws this error-

awk: line 1: syntax error at or near ,
2,903
Posted By sfisk
Need help appending a string to a field
Hi,

This is driving me nuts, can't think of any easy way to do it.

I need to append a string ".00" only in the third field of a file, and only if it does NOT have a decimal point already
...
13,344
Posted By sfisk
Both solutions worked
Thanks so much guys.

Doh, the grep one completely slipped my mind !
13,344
Posted By sfisk
The problem is this...
We get inventory files dumped from POS systems. They are supposed to be in this format- SKU;quantity;price;location

However, one particular store has added custom SKU's to their inventory, and the...
13,344
Posted By sfisk
need to delete lines that start with letters
Hi,

I need to remove all lines from a file that do not start with numbers

For instance, if the first three characters on any line are not numbers, delete those lines

I've tried to do it with...
Showing results 1 to 7 of 7

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