<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to remove the specific feilds from a string in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435618#M36919</link>
    <description>How about:&lt;BR /&gt;awk '{$5=$7=$10=$11=$12=$13=$17="";gsub(/[ ]+/," ")}1' &amp;lt; log1</description>
    <pubDate>Wed, 10 Jun 2009 08:11:59 GMT</pubDate>
    <dc:creator>Jared Middleton</dc:creator>
    <dc:date>2009-06-10T08:11:59Z</dc:date>
    <item>
      <title>how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435603#M36904</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cat log1&lt;BR /&gt;Jun  9 08:36:21 192.168.6.3 ERP_PRO 203.81.203.5: XAuth login expired and was terminated for username operator1 at 172.20.1.30/255.255.255.255. (2009-06-08 10:30:23&lt;BR /&gt;&lt;BR /&gt;I want to remove the 5th 7th 10th-13th, and 17th fields &lt;BR /&gt;&lt;BR /&gt;# cat log1 | &lt;SYNTAX to="" remove=""&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;/SYNTAX&gt;</description>
      <pubDate>Tue, 09 Jun 2009 10:40:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435603#M36904</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-06-09T10:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435604#M36905</link>
      <description>Hi Maaz:&lt;BR /&gt;&lt;BR /&gt;I presume that by "remove" you mean extract and print:&lt;BR /&gt;&lt;BR /&gt;# awk '{print $5,$7,$10,$11,$12,$13,$17}' log1&lt;BR /&gt;&lt;BR /&gt;ERP_PRO XAuth and was terminated for 172.20.1.30/255.255.255.255.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 09 Jun 2009 10:47:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435604#M36905</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-09T10:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435605#M36906</link>
      <description>&amp;gt;I want to remove the 5th 7th 10th-13th, and 17th fields&lt;BR /&gt;&lt;BR /&gt;You are going to have problems if your messages have different formats.  It seems that "XAuth login expired and was terminated for username operator1" is really one long logical field.</description>
      <pubDate>Tue, 09 Jun 2009 11:20:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435605#M36906</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-09T11:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435606#M36907</link>
      <description>Hi James R. Ferguson, Thanks for reply/help&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I presume that by "remove" you mean extract &lt;BR /&gt;&amp;gt;and print:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;# awk '{print $5,$7,$10,$11,$12,$13,$17}' log1&lt;BR /&gt;&lt;BR /&gt;no sir, I really want to remove these fields and print ;)&lt;BR /&gt;&lt;BR /&gt;Hi Dennis Handly, thanks for reply/suggestion&lt;BR /&gt;&amp;gt;You are going to have problems if your &lt;BR /&gt;&amp;gt;messages have different formats.....&lt;BR /&gt;Yes, you are right, we have already managed this(I too have a brain :-) ), infect we are just monitoring some specific IP(es) because we have allowed those IP(es) only. And  also only want to monitor just the "expired logins", so what we already doing is &lt;BR /&gt;&lt;BR /&gt;# cat log1 | grep -e "Allowed.IP.Address"  -e "login expired"&lt;BR /&gt;&lt;BR /&gt;and now want something that removes some fields from the output&lt;BR /&gt;# cat log1 | grep -e "Allowed.IP.Address"  -e "login expired" | &lt;SYNTAX to="" remove=""&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;/SYNTAX&gt;</description>
      <pubDate>Tue, 09 Jun 2009 14:51:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435606#M36907</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-06-09T14:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435607#M36908</link>
      <description>Shalom Maaz,&lt;BR /&gt;&lt;BR /&gt;Doing an awk to a second string and omitting certain fields does do the job.&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;&lt;BR /&gt;var2=$(echo $var1 | awk '{print $1 $2 $4 $5}')&lt;BR /&gt;&lt;BR /&gt;This will transfer fields 1 2 4 5 in string var1 to var2&lt;BR /&gt;&lt;BR /&gt;That seems to be what you are asking.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 09 Jun 2009 16:05:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435607#M36908</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-06-09T16:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435608#M36909</link>
      <description>Hi Thanks SEP for help/reply&lt;BR /&gt;I am sorry for my bad English, I am sure I failed to ask what I need ;(&lt;BR /&gt;&lt;BR /&gt;I am trying to elaborate &lt;BR /&gt;&lt;BR /&gt;I need to print the file named 'log1', but I want to skip/remove some fields(5th, 7th, 10-13th, and 17th) from printing(i,e I do not want those fields) and every thing else should print&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;e.g&lt;BR /&gt;&lt;BR /&gt;# cat log1 | awk '{DoNotprint $5 $7 $10-$13 $17}'&lt;BR /&gt;&lt;BR /&gt;hope this help you guys understand my question&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2009 17:05:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435608#M36909</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-06-09T17:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435609#M36910</link>
      <description>Hi (again) Maaz:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I need to print the file named 'log1', but I want to skip/remove some fields(5th, 7th, 10-13th, and 17th) from printing(i,e I do not want those fields) and every thing else should print&lt;BR /&gt;&lt;BR /&gt;OK, then let's do this (easily) in Perl:&lt;BR /&gt;&lt;BR /&gt;# perl -wnae '$skip="4 6 9 10 11 12 16";for ($n=0;$n&amp;lt;@F;$n++) {printf "%s ",$F[$n] unless $skip=~$n};END{print "\n"}' file&lt;BR /&gt;&lt;BR /&gt;Notice that the fields to skip are numbered from zero since Perl counts that way as opposed to 'awk' which counts one-relative.&lt;BR /&gt;&lt;BR /&gt;Using your input yields:&lt;BR /&gt;&lt;BR /&gt;192.168.6.3 203.81.203.5: login expired username operator1 at (2009-06-08 10:30:23&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 09 Jun 2009 17:26:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435609#M36910</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-09T17:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435610#M36911</link>
      <description>Hi Thanks James R. Ferguson for the help/reply/solution ;-)&lt;BR /&gt;&lt;BR /&gt;if you can also translate this 'perl' into 'bash/awk/sed/cut/grep', highly appreciate.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Tue, 09 Jun 2009 17:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435610#M36911</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-06-09T17:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435611#M36912</link>
      <description>I mean is it possible to do the same without using perl.. I mean using awk/sed/cut etc ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2009 17:59:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435611#M36912</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-06-09T17:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435612#M36913</link>
      <description>Hi (again) Maaz:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I mean is it possible to do the same without using perl.. I mean using awk/sed/cut etc ?&lt;BR /&gt;&lt;BR /&gt;OK, with 'awk' :&lt;BR /&gt;&lt;BR /&gt;# awk 'BEGIN{skip="5 7 10 11 12 13 17"};{for (n=1;n&amp;lt;=NF;n++) {if (skip!~n) {printf "%s ",$n}}};END{print "\n"}' file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 09 Jun 2009 18:59:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435612#M36913</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-09T18:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435613#M36914</link>
      <description>James, on my system (RHEL 4.8), neither example (perl or awk) is printing the first 3 fields.</description>
      <pubDate>Tue, 09 Jun 2009 23:06:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435613#M36914</guid>
      <dc:creator>Jared Middleton</dc:creator>
      <dc:date>2009-06-09T23:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435614#M36915</link>
      <description>Hi Thanks James R. Ferguson for help.&lt;BR /&gt;&lt;BR /&gt;One problem &lt;BR /&gt;&lt;BR /&gt;# perl -wnae '$skip="4 6 9 10 11 12 16";for ($n=0;$n&amp;lt;@F;$n++) {printf "%s ",$F[$n] unless $skip=~$n};END{print "\n"}' log1&lt;BR /&gt;192.168.6.3 203.81.203.5: login expired username operator1 at (2009-06-08 10:30:23) 192.168.6.3 199.1.76.59: login expired username mrkt_emea at 192.168.6.3 199.1.76.55: login expired username mrkt_emea at 172.20.1.29/255.255.255.255. &lt;BR /&gt;&lt;BR /&gt;both the perl and awk examples are not formating the newline("\n") properly.&lt;BR /&gt;I mean the perl and awk examples print the lines but without newlines, i.e from start till end no new lines.&lt;BR /&gt;&lt;BR /&gt;Please help&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 10 Jun 2009 03:14:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435614#M36915</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-06-10T03:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435615#M36916</link>
      <description>&lt;!--!*#--&gt;With light testing, this awk script does the job; the initialization of the array holding the fields to skip is more awkward than the perl; a better awk programmer might know something more idiomatic, but I'm pretty sure this works.&lt;BR /&gt;&lt;BR /&gt;awk 'BEGIN{split("5,7,10,11,12,13,17",a,/,/);for (j in a) skip[a[j]]=1};{for (n=1;n&amp;lt;=NF;n++) {if (!skip[n]) {printf "%s ",$n}}};END{print "\n"}' &amp;lt; log1</description>
      <pubDate>Wed, 10 Jun 2009 04:57:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435615#M36916</guid>
      <dc:creator>Stephen P. Schaefer</dc:creator>
      <dc:date>2009-06-10T04:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435616#M36917</link>
      <description>&lt;!--!*#--&gt;Sorry; need to fix the newline issue:&lt;BR /&gt;&lt;BR /&gt;awk 'BEGIN{split("5,7,10,11,12,13,17",a,/,/);for (j in a) skip[a[j]]=1};{for (n=1;n&amp;lt;=NF;n++) {if (!skip[n]) {printf "%s ",$n}}i;print};END{print "\n"}' &amp;lt; log1</description>
      <pubDate>Wed, 10 Jun 2009 05:03:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435616#M36917</guid>
      <dc:creator>Stephen P. Schaefer</dc:creator>
      <dc:date>2009-06-10T05:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435617#M36918</link>
      <description>&lt;!--!*#--&gt;Sigh.  Another newline fix:&lt;BR /&gt;&lt;BR /&gt;awk 'BEGIN{split("5,7,10,11,12,13,17",a,/,/);for (j in a) skip[a[j]]=1} {for (n=1;n&amp;lt;=NF;n++) {if (!skip[n]) {printf "%s ",$n}};printf "\n"}'&lt;LOG1&gt;&lt;/LOG1&gt;</description>
      <pubDate>Wed, 10 Jun 2009 05:10:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435617#M36918</guid>
      <dc:creator>Stephen P. Schaefer</dc:creator>
      <dc:date>2009-06-10T05:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435618#M36919</link>
      <description>How about:&lt;BR /&gt;awk '{$5=$7=$10=$11=$12=$13=$17="";gsub(/[ ]+/," ")}1' &amp;lt; log1</description>
      <pubDate>Wed, 10 Jun 2009 08:11:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435618#M36919</guid>
      <dc:creator>Jared Middleton</dc:creator>
      <dc:date>2009-06-10T08:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435619#M36920</link>
      <description>Dear Stephen P. Schaefer thanks for such a nice help&lt;BR /&gt;&lt;BR /&gt;Dear Jared Middleton its CCC(cool, crunchy, and crispy) ;), thanks a lot.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;awk '{$5=$7=$10=$11=$12=$13=$17=""&lt;BR /&gt;I understand the above part of the code&lt;BR /&gt;&lt;BR /&gt;if you can please explain this ' gsub(/[ ]+/," ") ' part of the code/syntax, I mean whats its doing.. highly appreciated &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jun 2009 08:59:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435619#M36920</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-06-10T08:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435620#M36921</link>
      <description>Hi (again) Maaz:&lt;BR /&gt;&lt;BR /&gt;My apologies for not writing and testing my own code better.  I failed to rigorously match the exclusion list and hence my output eliminated the first three fields.&lt;BR /&gt;&lt;BR /&gt;In the modified Perl script, the '\b' represents word "boundry" character.  This serves to delineate each value in the '$skip' list and thus allows exact matching whereas before values of 0, 1, or 2 were matched to segments of 10, 11, and 12.&lt;BR /&gt;&lt;BR /&gt;Thus, use:&lt;BR /&gt;&lt;BR /&gt;# perl -nae '$skip="4 6 9 10 11 12 16";for ($n=0;$n&amp;lt;@F;$n++) {printf "%s ",$F[$n] unless $skip=~/\b$n\b/};END{print "&lt;BR /&gt;\n"}' file&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;@ Stephen: very good!&lt;BR /&gt;&lt;BR /&gt;@ Jared: very nicely done!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jun 2009 12:31:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435620#M36921</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-10T12:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435621#M36922</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Sorry, that last Perl should have been (without the 'END' block):&lt;BR /&gt;&lt;BR /&gt;# perl -nae '$skip="4 6 9 10 11 12 16";for ($n=0;$n&amp;lt;@F;$n++) {printf "%s ",$F[$n] unless $skip=~/\b$n\b/};print "\n"' file&lt;BR /&gt;&lt;BR /&gt;That aside, Jared's 'awk' solution could be emulated in Perl (thought not nearly as concisely) with:&lt;BR /&gt;&lt;BR /&gt;# perl -ane '@F[4,6,9..12,16]=undef;for (0..$#F) {printf "%s ",$F[$_] if defined $F[$_]};print "\n"' file&lt;BR /&gt;&lt;BR /&gt;Lastly, Jared's 'gsub' globally substitutes muliple spaces to one single space (left from nulling the fields you wanted to skip).  In my second Perl script above, I skip undefined array elements.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jun 2009 14:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435621#M36922</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-10T14:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove the specific feilds from a string</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435622#M36923</link>
      <description>&lt;!--!*#--&gt;don't have to use cat/grep/sed/perl....you can just use awk&lt;BR /&gt;&lt;BR /&gt;awk '/Allowed.IP.Address|login expired/{ $5=$7=$10=$13=$17=""}1' file</description>
      <pubDate>Thu, 11 Jun 2009 05:18:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-remove-the-specific-feilds-from-a-string/m-p/4435622#M36923</guid>
      <dc:creator>ghostdog74</dc:creator>
      <dc:date>2009-06-11T05:18:02Z</dc:date>
    </item>
  </channel>
</rss>

