![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A problem in autosys-- very urgent | mohanpadamata | UNIX for Advanced & Expert Users | 0 | 04-02-2008 08:39 AM |
| Getting Following problem when opening shell script (Very Urgent) | sunitachoudhury | Shell Programming and Scripting | 1 | 03-31-2008 07:01 AM |
| Another Urgent HDD problem | adol3 | SUN Solaris | 4 | 11-21-2005 02:04 PM |
| help urgent problem | ssshakir | UNIX for Dummies Questions & Answers | 1 | 12-01-2004 12:25 PM |
| ulimit problem(Urgent) | informshilpa | UNIX for Advanced & Expert Users | 1 | 03-05-2002 04:45 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
urgent: script problem???
#!/usr/bin/sh
read file #exec 3<&0 exec 0<$file while read line do if [ $count -eq 4 ] then BOUND=$line break fi count=`expr $count + 1` done #exec 0<&3 echo $BOUND sh check.sh myfile.txt after runing the script i am getting following error messages check.sh[7]: test: 0403-004 Specify a parameter with this command. expr: 0402-050 Syntax error. check.sh[7]: test: 0403-004 Specify a parameter with this command. expr: 0402-050 Syntax error. |
|
||||
|
Re:
Still syntax errors.
could you please try running the script on your machine. myfile.txt has following 1 2 3 4 5 6 |
|
|||||
|
skyineyes,
You are repeatedly breaking the rules by bumping up your posts. See your original thread - http://www.unix.com/shell-programmin...rror-line.html and this locked thread - http://www.unix.com/shell-programmin...5-problem.html Please adhere to the rules. You are very close to earning a ban. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|