<?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: perl script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/3690076#M103048</link>
    <description>The 12-05 is just an example of a date no?&lt;BR /&gt;Will the month field be zero-filled, blank filled, or short in January?&lt;BR /&gt;&lt;BR /&gt;Before that assignment line you can use:&lt;BR /&gt;&lt;BR /&gt;$file =~ s/\s?\d+-\d\d(-MSSQL-|-MSESE-|-)//;&lt;BR /&gt;&lt;BR /&gt;This replaces a matching string in $file with nothing.&lt;BR /&gt;&lt;BR /&gt;The match requires&lt;BR /&gt;\s?  = 0 or 1 space (January)&lt;BR /&gt;\d+  = 1 or more digits&lt;BR /&gt;-    = a dash&lt;BR /&gt;\d\d = two digits&lt;BR /&gt;(a|b|c) = a, b, or c where a=-MSSQL, b=-MSESE, c= a dash.&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Dec 2005 23:09:55 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2005-12-12T23:09:55Z</dc:date>
    <item>
      <title>perl script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/3690075#M103047</link>
      <description>I am modified someone perl script.  This script is using the writeexcel module to produce a excel file.&lt;BR /&gt;&lt;BR /&gt;I have the following line which is actually create a new worksheet and named it using the file name in the directory.&lt;BR /&gt;($sheetname)=($file=~m#.*\d-(.+)\.csv#);&lt;BR /&gt;&lt;BR /&gt;List of file in the directory&lt;BR /&gt;12-05-ABC_XXX_Filesystem.csv              12-05-MSESE-ABC_xxxsg-x_ExchIS.csv&lt;BR /&gt;12-05-ABC_Ksex_FS_Sun_BD.csv              12-05-MSESE-ABC_xxxx_Exch_Fri_AC.csv           12-05-MSSQL-ABC_xxxsgsap_PRD2_Diff.csv&lt;BR /&gt;12-05-ABC_xxx_FS_Wed_BD.csv &lt;BR /&gt;&lt;BR /&gt;However, excel worksheet name has some limitation on the length of the name it can use.&lt;BR /&gt;&lt;BR /&gt;I would like to cut down "12-05-", "MSSQL-", "MSESE-" from the file name so that the name can be shorter to use for the excel spreadsheet.</description>
      <pubDate>Mon, 12 Dec 2005 22:25:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/3690075#M103047</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2005-12-12T22:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: perl script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/3690076#M103048</link>
      <description>The 12-05 is just an example of a date no?&lt;BR /&gt;Will the month field be zero-filled, blank filled, or short in January?&lt;BR /&gt;&lt;BR /&gt;Before that assignment line you can use:&lt;BR /&gt;&lt;BR /&gt;$file =~ s/\s?\d+-\d\d(-MSSQL-|-MSESE-|-)//;&lt;BR /&gt;&lt;BR /&gt;This replaces a matching string in $file with nothing.&lt;BR /&gt;&lt;BR /&gt;The match requires&lt;BR /&gt;\s?  = 0 or 1 space (January)&lt;BR /&gt;\d+  = 1 or more digits&lt;BR /&gt;-    = a dash&lt;BR /&gt;\d\d = two digits&lt;BR /&gt;(a|b|c) = a, b, or c where a=-MSSQL, b=-MSESE, c= a dash.&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Dec 2005 23:09:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/3690076#M103048</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-12-12T23:09:55Z</dc:date>
    </item>
  </channel>
</rss>

