<?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: script to match character in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5708767#M638320</link>
    <description>&lt;P&gt;I may be make it confued so I would like to clearly re-post my question .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a master file , the content is as below.&lt;BR /&gt;#vi master.txt&lt;BR /&gt;"d"""""""" aaa bbb ccc ddd eee " " "&lt;BR /&gt;"""y""d"""" xxx yyy zzz mmm ooo " " "&lt;BR /&gt;""f""""""" ggg hhh iii jjj kkk " " "&lt;BR /&gt;&lt;BR /&gt;I also have some text files ,&lt;BR /&gt;eg.&lt;BR /&gt;#vi file1.txt&lt;BR /&gt;aaa&lt;BR /&gt;#vi file2.txt&lt;BR /&gt;bbb&lt;BR /&gt;#vi file3.txt&lt;BR /&gt;ccc&lt;BR /&gt;#vi file4.txt&lt;BR /&gt;ddd&lt;BR /&gt;&lt;BR /&gt;I would like to check if the fourth column ( eg. ddd mmm jjj ) is exist in these text files , if not exist , then output this line , in this case , output the below ( as ddd exists in file4.txt )&lt;BR /&gt;"""y""d"""" xxx yyy zzz mmm ooo " " "&lt;BR /&gt;""f""""""" ggg hhh iii jjj kkk " " "&lt;BR /&gt;&lt;BR /&gt;The requirement is check&lt;BR /&gt;1) after 9 " , and&lt;BR /&gt;2) the 4th column of the string that delimited by space .&lt;BR /&gt;&lt;BR /&gt;can advise what can I do ? Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jul 2012 23:36:38 GMT</pubDate>
    <dc:creator>Intothenewworld</dc:creator>
    <dc:date>2012-07-02T23:36:38Z</dc:date>
    <item>
      <title>script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5703339#M638309</link>
      <description>&lt;P&gt;I have a master file (master.txt), the content is as below&lt;/P&gt;&lt;P&gt;#vi master.txt&lt;BR /&gt;aaa&lt;BR /&gt;bbb&lt;BR /&gt;ccc&lt;BR /&gt;ddd&lt;BR /&gt;eee&lt;BR /&gt;fff&lt;BR /&gt;ggg&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I also have some file (eg. file1.txt , file2.txt , file3.txt ... ) , these files may be have the characters as above , for example&lt;BR /&gt;#vi file1.txt&lt;BR /&gt;123456 aaa 54&lt;/P&gt;&lt;P&gt;#vi file2.txt&lt;BR /&gt;1456456 bbb 452&lt;/P&gt;&lt;P&gt;#vi file3.txt&lt;BR /&gt;667766 ccc 123&lt;/P&gt;&lt;P&gt;like above , file1.txt have aaa , file2.txt have bbb , file3.txt have ccc , I would like to sort it out , to output a file (matching.txt) that match the file name with the character as below .&lt;/P&gt;&lt;P&gt;#vi matching.txt&lt;BR /&gt;aaa&amp;nbsp;file1.txt&lt;BR /&gt;bbb&amp;nbsp;file2.txt&amp;nbsp;&lt;BR /&gt;ccc&amp;nbsp;file3.txt&lt;BR /&gt;ddd&amp;nbsp;"&lt;BR /&gt;eee&amp;nbsp;"&lt;BR /&gt;fff&amp;nbsp;"&lt;BR /&gt;ggg&amp;nbsp;"&lt;/P&gt;&lt;P&gt;can advise what can i write the script ?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2012 10:35:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5703339#M638309</guid>
      <dc:creator>Intothenewworld</dc:creator>
      <dc:date>2012-06-27T10:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5703549#M638310</link>
      <description>&lt;P&gt;thx reply ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;may be I simpifiy my requirement , if I just would like to list out the line&amp;nbsp;( in&amp;nbsp;the master file&amp;nbsp; ) that do&amp;nbsp;not appear in any files , eg. if aaa is not exist in any files , then output aaa ; if bbb is exist in file1.txt (any files would be ok , assume exist in file1.txt now ) , then do not output bbb .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can advise what can i do ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2012 12:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5703549#M638310</guid>
      <dc:creator>Intothenewworld</dc:creator>
      <dc:date>2012-06-27T12:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5703895#M638311</link>
      <description>&lt;P&gt;&amp;gt;if I just would like to list out the line that do&amp;nbsp;not appear in any files, eg. if aaa is not exist in any files, then output aaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could do something like:&lt;/P&gt;&lt;P&gt;while read line; do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fgrep -q "$line" $filelist&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if [ $? -ne 0 ]; then&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; echo "$line does not appear"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fi&lt;/P&gt;&lt;P&gt;done &amp;lt; master.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where $filelist contains the names of the files you want to search.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2012 16:24:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5703895#M638311</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-06-27T16:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5704157#M638312</link>
      <description>&lt;P&gt;thx reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where $filelist contains the names of the files you want to search. &amp;lt;== how to set this variable ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just would like to&amp;nbsp;output a file&amp;nbsp;to show all lines&amp;nbsp;that do NOT appear in any file&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2012 23:00:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5704157#M638312</guid>
      <dc:creator>Intothenewworld</dc:creator>
      <dc:date>2012-06-27T23:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5704161#M638313</link>
      <description>&lt;P&gt;may be I&amp;nbsp;explain my requirement in more detail&amp;nbsp;, if I just would like to list out the line ( in the master file&amp;nbsp; ) that do not appear in any files , eg. if aaa is not exist in any files , then output aaa to the output file ; if bbb is exist in file1.txt (any files would be ok , assume exist in file1.txt now ) , then do not output bbb to the output file ; if ccc is not exist in any files , then output ccc to the output file ..&lt;/P&gt;&lt;P&gt;I just would like to output a file to show all lines that do NOT appear in any file .&lt;/P&gt;&lt;P&gt;the output file as below&lt;BR /&gt;#vi output.txt&lt;BR /&gt;aaa&lt;BR /&gt;ccc&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;can advise what can i do ?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2012 23:04:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5704161#M638313</guid>
      <dc:creator>Intothenewworld</dc:creator>
      <dc:date>2012-06-27T23:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5704167#M638314</link>
      <description>&lt;P&gt;&amp;gt;Where $filelist contains the names of the files you want to search. &amp;lt;== how to set this variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you know the names, you can just list them:&lt;/P&gt;&lt;P&gt;filelist="file1.txt file2.txt file3.txt"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you just want to hard code them, you can also do that.&amp;nbsp; Or you can find patterns:&lt;/P&gt;&lt;P&gt;filelist="file*.txt"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;if I just would like to list out the line (in the master file) that do not appear in any files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should do it:&lt;/P&gt;&lt;P&gt;while read line; do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fgrep -q "$line" file*.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if [ $? -ne 0 ]; then&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; echo "$line"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fi&lt;/P&gt;&lt;P&gt;done &amp;lt; master.txt&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2012 23:12:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5704167#M638314</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-06-27T23:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5704243#M638315</link>
      <description>&lt;P&gt;thanks for Dennis Handly , you help a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be I was not express my requirement clearyly and I would like to change a bit requirement .&lt;/P&gt;&lt;P&gt;I have a file as below ( eg. master.txt) , it delimited by " and space&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#vi master.txt&lt;BR /&gt;"""""""""&amp;nbsp; aaa bbb ccc ddd eee " " "&lt;BR /&gt;"""""""""&amp;nbsp; xxx yyy zzz mmm ooo " " "&lt;BR /&gt;"""""""""&amp;nbsp; ggg hhh iii jjj kkk " " "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a set of files (eg. file1.txt , file2.txt ... ) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what I would like to do is to list the lines that do not appear the fourth column ( ddd , mmm , jjj ) of master.txt in any files, that mean search ddd , mmm , jjj in all .txt file ,if do not appear , then output the line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assume&amp;nbsp; mmm , jjj is not appear in any .txt file , then output the below result.&lt;/P&gt;&lt;P&gt;"""""""""&amp;nbsp; xxx yyy zzz mmm ooo " " "&lt;BR /&gt;"""""""""&amp;nbsp; ggg hhh iii jjj kkk " " "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can advise how I can do for it ?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2012 01:55:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5704243#M638315</guid>
      <dc:creator>Intothenewworld</dc:creator>
      <dc:date>2012-06-28T01:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5704373#M638316</link>
      <description>&lt;P&gt;&amp;gt;May be I did not express my requirement clearly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you try it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;I have a file as below, it delimited by " and space&lt;/P&gt;&lt;P&gt;"""""""""&amp;nbsp; aaa bbb ccc ddd eee " " "&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you explain how the double quote is delimiting things?&lt;/P&gt;&lt;P&gt;As far as the shell's read is concerned (with the default IFS), there are these 9 fields:&lt;/P&gt;&lt;P&gt;""""""""", aaa, bbb, ccc, ddd, eee, ", ", "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;I would like to do is to list the lines that do not appear the fourth column (ddd, mmm, jjj) of master.txt in any files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;while read f1 f2 f3 f4 f5 f6 f7 f8 f9; do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fgrep -q "$f5" file*.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if [ $? -ne 0 ]; then&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; echo "$f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9" # print an approximation of original line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fi&lt;/P&gt;&lt;P&gt;done &amp;lt; master.txt&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2012 04:56:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5704373#M638316</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-06-28T04:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5704483#M638317</link>
      <description>&lt;P&gt;Thanks , it should be works&lt;/P&gt;&lt;P&gt;May I ask&lt;BR /&gt;1) what is the use of f1 , f2 .... ? is it represent " ?&lt;BR /&gt;2) what is the mean of "$f5&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2012 06:25:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5704483#M638317</guid>
      <dc:creator>Intothenewworld</dc:creator>
      <dc:date>2012-06-28T06:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5705461#M638318</link>
      <description>&lt;P&gt;&amp;gt;Thanks, it should be works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are happy with the answers, please click on the Kudos stars of each answer that was helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;1) what is the use of f1, f2 ...? is it represent?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I don't know what your fields means, I just assigned short variable names, they just mean field1, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;2) what is the meaning of "$f5?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This provides the value of the variable f5, field5.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2012 19:40:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5705461#M638318</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-06-28T19:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5708563#M638319</link>
      <description>&lt;P&gt;thx replies,&lt;/P&gt;&lt;P&gt;I am sorry that when I apply it to my real case , it still have problem , as in my real case , the master file has a bit difference Dennis Handly 's method is delimited by space only ( f1 f2 f3 is delimited by space ) , the real file is a bit complicate.&lt;/P&gt;&lt;P&gt;The below is the master file of the real case , in the string (eg. aaa bbb ccc ddd eee) , there are other space before this string .&lt;/P&gt;&lt;P&gt;#vi master.txt&lt;BR /&gt;"ffd" hg " gg""""""&amp;nbsp; aaa bbb ccc ddd eee " " "&lt;BR /&gt;"fd "jg "" """""&amp;nbsp; xxx yyy zzz mmm ooo " " "&lt;BR /&gt;"hdgd"jg"""fd""f""&amp;nbsp; ggg hhh iii jjj kkk " " "&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to compare ( in my master file ) is&lt;/P&gt;&lt;P&gt;1) after 9 " , then&lt;BR /&gt;2) the 4th column of the string that delimited by space ,&lt;/P&gt;&lt;P&gt;can advise what can i do ?&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2012 18:21:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5708563#M638319</guid>
      <dc:creator>Intothenewworld</dc:creator>
      <dc:date>2012-07-02T18:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5708767#M638320</link>
      <description>&lt;P&gt;I may be make it confued so I would like to clearly re-post my question .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a master file , the content is as below.&lt;BR /&gt;#vi master.txt&lt;BR /&gt;"d"""""""" aaa bbb ccc ddd eee " " "&lt;BR /&gt;"""y""d"""" xxx yyy zzz mmm ooo " " "&lt;BR /&gt;""f""""""" ggg hhh iii jjj kkk " " "&lt;BR /&gt;&lt;BR /&gt;I also have some text files ,&lt;BR /&gt;eg.&lt;BR /&gt;#vi file1.txt&lt;BR /&gt;aaa&lt;BR /&gt;#vi file2.txt&lt;BR /&gt;bbb&lt;BR /&gt;#vi file3.txt&lt;BR /&gt;ccc&lt;BR /&gt;#vi file4.txt&lt;BR /&gt;ddd&lt;BR /&gt;&lt;BR /&gt;I would like to check if the fourth column ( eg. ddd mmm jjj ) is exist in these text files , if not exist , then output this line , in this case , output the below ( as ddd exists in file4.txt )&lt;BR /&gt;"""y""d"""" xxx yyy zzz mmm ooo " " "&lt;BR /&gt;""f""""""" ggg hhh iii jjj kkk " " "&lt;BR /&gt;&lt;BR /&gt;The requirement is check&lt;BR /&gt;1) after 9 " , and&lt;BR /&gt;2) the 4th column of the string that delimited by space .&lt;BR /&gt;&lt;BR /&gt;can advise what can I do ? Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2012 23:36:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5708767#M638320</guid>
      <dc:creator>Intothenewworld</dc:creator>
      <dc:date>2012-07-02T23:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: script to match character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5708877#M638321</link>
      <description>&lt;P&gt;&amp;gt;1) after 9 ", then&lt;BR /&gt;&amp;gt;2) the 4th column of the string that delimited by space&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, try this:&lt;/P&gt;&lt;P&gt;while read line; do&lt;BR /&gt;&amp;nbsp;&amp;nbsp; IFS_save=$IFS&lt;BR /&gt;&amp;nbsp;&amp;nbsp; IFS='"\n'&amp;nbsp;&amp;nbsp;&amp;nbsp; # split on double quote&lt;BR /&gt;&amp;nbsp;&amp;nbsp; echo "$line" | read f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11&lt;BR /&gt;&amp;nbsp;&amp;nbsp; IFS=$IFS_save&lt;BR /&gt;&amp;nbsp;&amp;nbsp; f10=${f10# *}&amp;nbsp; # strip leading spaces&lt;BR /&gt;&amp;nbsp;&amp;nbsp; f10=${f10% *}&amp;nbsp; # strip trailing spaces&lt;BR /&gt;&amp;nbsp;&amp;nbsp; echo "$f10" | read f1 f2 f3 f4 f5&amp;nbsp; # split on spaces&lt;BR /&gt;&amp;nbsp;&amp;nbsp; fgrep -q "$f4" file*.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if [ $? -ne 0 ]; then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "$line" # print original line if field not found&lt;BR /&gt;&amp;nbsp;&amp;nbsp; fi&lt;BR /&gt;done &amp;lt; master.txt&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2012 04:03:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-match-character/m-p/5708877#M638321</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-07-03T04:03:18Z</dc:date>
    </item>
  </channel>
</rss>

