<?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: run script error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288291#M181622</link>
    <description>I tried the given script but didn't find error at line no. 2. Please try the script as below:&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;for x in `ls -1 *.csv`&lt;BR /&gt;do&lt;BR /&gt;y=$(echo $x|awk -F. '{print $1}')&lt;BR /&gt;quoter -d "," $x&amp;gt;$y.q&lt;BR /&gt;done&lt;BR /&gt;-----------------------------------&lt;BR /&gt;&lt;BR /&gt;BTW, which shell are you using (i.e. ksh, sh ..etc). You can try changing the shell and then executing the script too.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Anshu</description>
    <pubDate>Thu, 27 May 2004 04:44:32 GMT</pubDate>
    <dc:creator>Anupam Anshu_1</dc:creator>
    <dc:date>2004-05-27T04:44:32Z</dc:date>
    <item>
      <title>run script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288290#M181621</link>
      <description>I have a very simple script but can't run , &lt;BR /&gt;&lt;BR /&gt;for x in $(ls -1 *.csv)&lt;BR /&gt;do&lt;BR /&gt;  y=$(echo $x|awk -F. '{print $1}')&lt;BR /&gt;  quoter -d "," $x&amp;gt;$y.q&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;it pop the below error ,&lt;BR /&gt;&lt;BR /&gt;'/script1: line 2: syntax error near unexpected token `do&lt;BR /&gt;'/script1: line 2: `do&lt;BR /&gt;&lt;BR /&gt;could suggest what is wrong in my system ? thx</description>
      <pubDate>Thu, 27 May 2004 04:08:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288290#M181621</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-05-27T04:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: run script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288291#M181622</link>
      <description>I tried the given script but didn't find error at line no. 2. Please try the script as below:&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;for x in `ls -1 *.csv`&lt;BR /&gt;do&lt;BR /&gt;y=$(echo $x|awk -F. '{print $1}')&lt;BR /&gt;quoter -d "," $x&amp;gt;$y.q&lt;BR /&gt;done&lt;BR /&gt;-----------------------------------&lt;BR /&gt;&lt;BR /&gt;BTW, which shell are you using (i.e. ksh, sh ..etc). You can try changing the shell and then executing the script too.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Anshu</description>
      <pubDate>Thu, 27 May 2004 04:44:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288291#M181622</guid>
      <dc:creator>Anupam Anshu_1</dc:creator>
      <dc:date>2004-05-27T04:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: run script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288292#M181623</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;maybe you wrote it in windows system and when you put it ftp you use bin non ascii transport</description>
      <pubDate>Thu, 27 May 2004 04:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288292#M181623</guid>
      <dc:creator>piotr wienckiewicz</dc:creator>
      <dc:date>2004-05-27T04:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: run script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288293#M181624</link>
      <description>Well, I can't quite see why it wouldn't work but you have far more in there than you need.&lt;BR /&gt; &lt;BR /&gt;Try&lt;BR /&gt; &lt;BR /&gt;for x in *.csv&lt;BR /&gt;do&lt;BR /&gt; &lt;BR /&gt;instead of what you have there.</description>
      <pubDate>Thu, 27 May 2004 05:16:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288293#M181624</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-05-27T05:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: run script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288294#M181625</link>
      <description>ls -1 |while read line&lt;BR /&gt;do&lt;BR /&gt; y=`echo $x|awk -F. '{print $1}'`&lt;BR /&gt;....&lt;BR /&gt;...&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Thu, 27 May 2004 05:35:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288294#M181625</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-05-27T05:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: run script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288295#M181626</link>
      <description>Which shell are you using to run the script ?&lt;BR /&gt;try&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh &lt;BR /&gt;&lt;BR /&gt;in the first line&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 28 May 2004 07:10:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288295#M181626</guid>
      <dc:creator>Andres Stickar</dc:creator>
      <dc:date>2004-05-28T07:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: run script error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288296#M181627</link>
      <description>Hi,&lt;BR /&gt;Yours are perfect one. Check whether any control chars are there or not? Or have you written in dos and ftp'd it.&lt;BR /&gt;If so then run dos2ux (shellscriptname) &amp;gt; (newname)&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Tapas</description>
      <pubDate>Fri, 28 May 2004 07:20:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-script-error/m-p/3288296#M181627</guid>
      <dc:creator>Tapas Jha</dc:creator>
      <dc:date>2004-05-28T07:20:59Z</dc:date>
    </item>
  </channel>
</rss>

