Search Results

Search: Posts Made By: ShadowBlade72
1,817
Posted By Yoda
Yes, you are right. \/.* removes everything after...
Yes, you are right. \/.* removes everything after / for server & client IP addresses.

/ is a meta-character, hence it should be escaped.
1,817
Posted By Yoda
awk -F\| '{ for(i=1;i<=NF;i++) { if($i ~...
awk -F\| '{
for(i=1;i<=NF;i++) {
if($i ~ /subj=/) { sb=$i; gsub(/.*=/,"",sb); }
if($i ~ /srv=/) { sr=$i; gsub(/.*=|\/.*/,"",sr); }
if($i ~ /cli=/) { cl=$i; gsub(/.*=|\/.*/,"",cl); }
...
6,205
Posted By Yoda
In this pattern we are escaping open round...
In this pattern we are escaping open round bracket ( and close round bracket ) because these meta-characters (http://www.bo.infn.it/alice/alice-doc/mll-doc/usrgde/node11.html) have special meaning.
...
6,205
Posted By Yoda
awk -F'[ |=]' ' \ { for(i=1;i<=NF;i++) ...
awk -F'[ |=]' ' \
{
for(i=1;i<=NF;i++)
{
if($i ~ /^\(/)
{
site=$i; gsub(/\(/,"",site); gsub(/\)/,"",site); gsub(":","",site);
}
if($i ~ /username/)
{
...
6,205
Posted By RudiC
Condensing bipinajith's proposal slightly, here's...
Condensing bipinajith's proposal slightly, here's some explanatory hints:awk -F'[ =&]' ' # set field separator to " ", "=", or "&" single char at which the line is...
Showing results 1 to 5 of 5

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