Search Results

Search: Posts Made By: mrealty
7,465
Posted By mrealty
pattern match url in string / PERL
Am trying to remove urls from text strings in PERL. I have the following but it does not seem to work:

$remarks =~ s/www\.\s+\.com//gi;



In English, I want to look for www. then I want to...
2,002
Posted By mrealty
What I meant to say at the end of my last post...
What I meant to say at the end of my last post was that I was hoping for someone to confirm that my new sed statement looked like it won't cause any problems. The only thing I noticed that was kind...
2,002
Posted By mrealty
Ah, I do have a -i (edit files in place). sed...
Ah, I do have a -i (edit files in place). sed v4.1.5

So to remove all entire lines containing one string or another from a log file (without moving, disrupting, etc. the original log file)

sed...
2,002
Posted By mrealty
sed command
Hi: I have an overly large log file because of my own couple of IPs. I have been doing this:

sed '/174.114.270.1/d' accesslog.txt > newaccesslog.txt
sed '/192.168.1.1/d' newaccesslog.txt >...
Showing results 1 to 4 of 4

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