<?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: Pattern substitution in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721854#M948136</link>
    <description>HI&lt;BR /&gt;&lt;BR /&gt;please ignore my last response I misread the question the grep -v will remove the full line from the file.&lt;BR /&gt;&lt;BR /&gt;cat f1 | cut -f2 &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;John</description>
    <pubDate>Sat, 11 May 2002 09:07:51 GMT</pubDate>
    <dc:creator>John Carr_2</dc:creator>
    <dc:date>2002-05-11T09:07:51Z</dc:date>
    <item>
      <title>Pattern substitution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721848#M948130</link>
      <description>I would like to remove the following patterns i.e  find: and also :Permission denied from my file, f1, and maintain only the second field i.e /fs36/nwd/f1 and /fs36/nwd/f1/audio. The file f1 has the following format:&lt;BR /&gt;&lt;BR /&gt;find: /fs36/nwd/f1 :Permission denied&lt;BR /&gt;find: /fs36/nwd/f1/audio :Permission denied&lt;BR /&gt;&lt;BR /&gt;How do I write a csh script to do that? What is the single command utility does the job?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Sat, 11 May 2002 08:23:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721848#M948130</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-05-11T08:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern substitution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721849#M948131</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;command to use&lt;BR /&gt;&lt;BR /&gt;cat file | awk -F : '{print $2}' &amp;gt; file2&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sat, 11 May 2002 08:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721849#M948131</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-05-11T08:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern substitution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721850#M948132</link>
      <description>Thanks. I tried the following on file f1, but it did not work&lt;BR /&gt;%s/find:/ /g&lt;BR /&gt;%s/:Permission denied/ /g</description>
      <pubDate>Sat, 11 May 2002 08:37:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721850#M948132</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-05-11T08:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern substitution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721851#M948133</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;From the command line&lt;BR /&gt;&lt;BR /&gt;sed s/find://g f1&lt;BR /&gt;sed s/:Permission denied//g f1&lt;BR /&gt;&lt;BR /&gt;I'll put in a script as well&lt;BR /&gt;&lt;BR /&gt;Steve&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 11 May 2002 08:43:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721851#M948133</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-05-11T08:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern substitution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721852#M948134</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;After using vi to edit the file&lt;BR /&gt;&lt;BR /&gt;%s/find:/ /g &lt;BR /&gt;&lt;BR /&gt;Your method also works&lt;BR /&gt;&lt;BR /&gt;Steve&lt;BR /&gt;</description>
      <pubDate>Sat, 11 May 2002 08:47:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721852#M948134</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-05-11T08:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern substitution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721853#M948135</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;cat f1 |  grep -v "Permission denied" &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;John.</description>
      <pubDate>Sat, 11 May 2002 08:58:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721853#M948135</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-05-11T08:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern substitution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721854#M948136</link>
      <description>HI&lt;BR /&gt;&lt;BR /&gt;please ignore my last response I misread the question the grep -v will remove the full line from the file.&lt;BR /&gt;&lt;BR /&gt;cat f1 | cut -f2 &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Sat, 11 May 2002 09:07:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pattern-substitution/m-p/2721854#M948136</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-05-11T09:07:51Z</dc:date>
    </item>
  </channel>
</rss>

