- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- run script error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 09:08 PM
05-26-2004 09:08 PM
for x in $(ls -1 *.csv)
do
y=$(echo $x|awk -F. '{print $1}')
quoter -d "," $x>$y.q
done
it pop the below error ,
'/script1: line 2: syntax error near unexpected token `do
'/script1: line 2: `do
could suggest what is wrong in my system ? thx
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 09:44 PM
05-26-2004 09:44 PM
Re: run script error
----------------------------------
for x in `ls -1 *.csv`
do
y=$(echo $x|awk -F. '{print $1}')
quoter -d "," $x>$y.q
done
-----------------------------------
BTW, which shell are you using (i.e. ksh, sh ..etc). You can try changing the shell and then executing the script too.
Regards,
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 09:59 PM
05-26-2004 09:59 PM
Re: run script error
maybe you wrote it in windows system and when you put it ftp you use bin non ascii transport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 10:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2004 10:35 PM
05-26-2004 10:35 PM
Re: run script error
do
y=`echo $x|awk -F. '{print $1}'`
....
...
done
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 12:10 AM
05-28-2004 12:10 AM
Re: run script error
try
#!/bin/sh
in the first line
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 12:20 AM
05-28-2004 12:20 AM
Re: run script error
Yours are perfect one. Check whether any control chars are there or not? Or have you written in dos and ftp'd it.
If so then run dos2ux (shellscriptname) > (newname)
Rgds
Tapas