<?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: scripting help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862568#M96563</link>
    <description>i tried running one command..but it gives syntax error&lt;BR /&gt;sh: Syntax error: `(' is not expected.</description>
    <pubDate>Wed, 11 Dec 2002 19:08:54 GMT</pubDate>
    <dc:creator>roadrunner_1</dc:creator>
    <dc:date>2002-12-11T19:08:54Z</dc:date>
    <item>
      <title>scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862565#M96560</link>
      <description>I am running the sysinfo script to generate the output in html format. I have automated a task in windows machine where it ftps to the unix boxes and grabs the sysinfo files to the web server directory so that these can viewed as a webpage.&lt;BR /&gt;Now that my mainpage has links to various system names, I need the sysinfo file to renamed to a standard file name so that the links work fine...&lt;BR /&gt;Here is what I am trying to do.&lt;BR /&gt;1. When sysinfo is run i get the following three files in the tmp directory&lt;BR /&gt;sysinfo_hpux_20020114&lt;BR /&gt;sysinfo_hpux_20020114.index&lt;BR /&gt;sysinfo_hpux_20020114.main&lt;BR /&gt;Assuming that this directory contains only the above three files. I need to do this..&lt;BR /&gt;2. Each time after the output is done, I need to rename the veryfirst file as sysinfo_hpux ..in otherwords i need to remove the datestamp from the file name.&lt;BR /&gt;&lt;BR /&gt;can anyone help me do this..</description>
      <pubDate>Wed, 11 Dec 2002 18:51:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862565#M96560</guid>
      <dc:creator>roadrunner_1</dc:creator>
      <dc:date>2002-12-11T18:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862566#M96561</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;a very simple _untested_ (no access to a machine today) script:&lt;BR /&gt;&lt;BR /&gt;#! /usr/bin/ksh&lt;BR /&gt;cp sysinfo_hpux_[:digit:](\8\).index sysinfo_hpux.index&lt;BR /&gt;cp sysinfo_hpux_[:digit:](\8\).main sysinfo_hpux.main&lt;BR /&gt;cp sysinfo_hpux_[:digit:](\8\) sysinfo_hpux&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;FiX&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Dec 2002 19:01:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862566#M96561</guid>
      <dc:creator>F. X. de Montgolfier</dc:creator>
      <dc:date>2002-12-11T19:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862567#M96562</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# sed -e 's/_[0-9]\{8\}//'&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;echo sysinfo_hpux_20020114.main|sed -e 's/_[0-9]\{8\}//'&lt;BR /&gt;&lt;BR /&gt;..returns "sysinfo_hpux.main"&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Dec 2002 19:07:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862567#M96562</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-12-11T19:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862568#M96563</link>
      <description>i tried running one command..but it gives syntax error&lt;BR /&gt;sh: Syntax error: `(' is not expected.</description>
      <pubDate>Wed, 11 Dec 2002 19:08:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862568#M96563</guid>
      <dc:creator>roadrunner_1</dc:creator>
      <dc:date>2002-12-11T19:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862569#M96564</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;If you captured the filename in a variable, 'X' then you can do this:&lt;BR /&gt;&lt;BR /&gt;# mv $X `echo $X|sed -e 's/_[0-9]\{8\}//`&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 11 Dec 2002 19:29:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862569#M96564</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-12-11T19:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862570#M96565</link>
      <description>jeff,&lt;BR /&gt;thanks..it worked..but how do I do a listing which should display only the files names one after the other in a single column..it should not display permission, uid, gid date stamp etc..</description>
      <pubDate>Wed, 11 Dec 2002 20:16:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862570#M96565</guid>
      <dc:creator>roadrunner_1</dc:creator>
      <dc:date>2002-12-11T20:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862571#M96566</link>
      <description>hi (again):&lt;BR /&gt;&lt;BR /&gt;# ls -l x1 #...that's a numeric "one" after the "x" columns.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 11 Dec 2002 20:19:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862571#M96566</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-12-11T20:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862572#M96567</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;Did u mean ls -x1??&lt;BR /&gt;ls -l x1 tries looks for a file x1 ;)&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Dec 2002 20:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862572#M96567</guid>
      <dc:creator>roadrunner_1</dc:creator>
      <dc:date>2002-12-11T20:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862573#M96568</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Yes, sorry, I meant:&lt;BR /&gt;&lt;BR /&gt;# ls -x1 /tmp&lt;BR /&gt;&lt;BR /&gt;Regards (...and I am JRF...)</description>
      <pubDate>Wed, 11 Dec 2002 20:36:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862573#M96568</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-12-11T20:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: scripting help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862574#M96569</link>
      <description>sorry..I meant James aka JRF..was on the phone talking to some one..and type his name..&lt;BR /&gt;AND YOU ARE JRF.. ;)</description>
      <pubDate>Wed, 11 Dec 2002 20:53:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/2862574#M96569</guid>
      <dc:creator>roadrunner_1</dc:creator>
      <dc:date>2002-12-11T20:53:13Z</dc:date>
    </item>
  </channel>
</rss>

