<?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 Help on Perl Script. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-on-perl-script/m-p/4058012#M29722</link>
    <description>I'm trying to delete all " from file.  Following are a snippet of perl script.&lt;BR /&gt;&lt;BR /&gt;my @MYFILE=&lt;OUT&gt;;&lt;BR /&gt;foreach my $value (@MYFILE)&lt;BR /&gt; {&lt;BR /&gt;  $value =~ s/\"//g;&lt;BR /&gt;    print "$value";&lt;BR /&gt;}&lt;BR /&gt;close (OUT);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Output:&lt;BR /&gt;"LastName FirstName" 76&lt;BR /&gt;&lt;BR /&gt;Output I'm trying to get&lt;BR /&gt;LastName FirstName 76&lt;BR /&gt;&lt;BR /&gt;Appreciate all help&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JC&lt;BR /&gt;&lt;BR /&gt;&lt;/OUT&gt;</description>
    <pubDate>Tue, 21 Aug 2007 15:56:14 GMT</pubDate>
    <dc:creator>Junior C.</dc:creator>
    <dc:date>2007-08-21T15:56:14Z</dc:date>
    <item>
      <title>Help on Perl Script.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-perl-script/m-p/4058012#M29722</link>
      <description>I'm trying to delete all " from file.  Following are a snippet of perl script.&lt;BR /&gt;&lt;BR /&gt;my @MYFILE=&lt;OUT&gt;;&lt;BR /&gt;foreach my $value (@MYFILE)&lt;BR /&gt; {&lt;BR /&gt;  $value =~ s/\"//g;&lt;BR /&gt;    print "$value";&lt;BR /&gt;}&lt;BR /&gt;close (OUT);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Output:&lt;BR /&gt;"LastName FirstName" 76&lt;BR /&gt;&lt;BR /&gt;Output I'm trying to get&lt;BR /&gt;LastName FirstName 76&lt;BR /&gt;&lt;BR /&gt;Appreciate all help&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JC&lt;BR /&gt;&lt;BR /&gt;&lt;/OUT&gt;</description>
      <pubDate>Tue, 21 Aug 2007 15:56:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-perl-script/m-p/4058012#M29722</guid>
      <dc:creator>Junior C.</dc:creator>
      <dc:date>2007-08-21T15:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Perl Script.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-perl-script/m-p/4058013#M29723</link>
      <description>This one-liner does the job:&lt;BR /&gt;&lt;BR /&gt;perl -pi -e 's/"//g' file&lt;BR /&gt;&lt;BR /&gt;Does it in-place, and quickly.</description>
      <pubDate>Tue, 21 Aug 2007 16:25:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-perl-script/m-p/4058013#M29723</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-08-21T16:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Perl Script.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-perl-script/m-p/4058014#M29724</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;As Stuart showed:&lt;BR /&gt;&lt;BR /&gt;# perl -pi -e 's/"//g' file&lt;BR /&gt;&lt;BR /&gt;...eliminates a double quote (globally).&lt;BR /&gt;&lt;BR /&gt;The file is updated "in-place".  If you want to preserve a backup (old) version, simply specify an argument after the "i" switch like:&lt;BR /&gt;&lt;BR /&gt;# perl -pi.old -e 's/"//g' file&lt;BR /&gt;&lt;BR /&gt;...which will preserve the original "file" as "file.old".&lt;BR /&gt;&lt;BR /&gt;You can process multiple files at once by listing all their names as the script's arguments:&lt;BR /&gt;&lt;BR /&gt;# perl -pi -e 's/"//g' file1 file2 file3 ...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Aug 2007 16:51:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-perl-script/m-p/4058014#M29724</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-08-21T16:51:13Z</dc:date>
    </item>
  </channel>
</rss>

