10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
my script was running Ok, but suddenly it started giving this error.
./update_env_bi.sh: line 54: syntax error near unexpected token `)'
./update_env_bi.sh: line 54: `sed -i "s/PORT=*1/PORT=$2/" repository.xml'
The line 54 has this code.
sed -i "s/PORT=*1/PORT=$2/"... (2 Replies)
Discussion started by: shajay12
2. Shell Programming and Scripting
I have another problem with my script. Please accept my apologies, but I am really nooby in sh scripts. I am writing it for first time.
returned=`tail -50 SapLogs.log | grep -i "Error"`
if ; then
echo "There is no errors in the logs"
And after... (10 Replies)
Discussion started by: jedzio
3. Shell Programming and Scripting
I am writing one script to automate one of the process and for that I am using below command at one line :
uncompress `cat tmp`
content in tmp file are :
/home/vas/aqbatch/newbatch/archive/output/RIM_GUIDEPRICE_AQ_02108.DAT.Z... (5 Replies)
Discussion started by: NirajThakar
4. Shell Programming and Scripting
Am very new to Unix and am currently Involved in Migrating some Shell Scripts from AIX 4 to Solaris 10.
While using teh for loop am getting the below error:
$ echo $SHELL
$ for file in $(ls *SEBE*)
syntax error: `$' unexpected
while the same works without issue on... (4 Replies)
Discussion started by: paragkhanore
When I typed
#svcs -x sma
I received this following error,
svcs: svcs.c:335: Unexpected libscf error: invalid argument. Exiting.
I have googled around but could not find a solution.
IS this a bug?
I am using
Solaris 5.10 Generic_137137-09 sun4v sparc... (2 Replies)
Discussion started by: sundar63
6. Shell Programming and Scripting
i am getting following syntax error ...kingly advice why is it coming ??
find . -name "common.log"
if ; then
./a.sh: line 7: syntax error near unexpected token `fi'
./a.sh: line 7: `fi' (9 Replies)
Discussion started by: himvat
7. Shell Programming and Scripting
My script is throwing the error 'Syntax error: redirection unexpected'
My line of code..
cat nsstatustest.html | sed s/<tr><td align="left">/<tr><td align="left" bgcolor="#000000"><font color="white">/ > ztmp.Ps23zp2s.2-Fpps3-wmmm0dss3
HTML tags are getting in the way but they're needed to... (3 Replies)
Discussion started by: phpfreak
8. Shell Programming and Scripting
Yesterday i installed a new cron on solaris box. After a few minutes after loading the cron, i got the following error.
Your "crontab" on machine_name
unexpected end of line
This entry has been ignored.
Do any of you have any idea about this error ? (12 Replies)
Discussion started by: dhanamurthy
9. UNIX for Dummies Questions & Answers
./sample.5: syntax error: `(' unexpected
I get this error and Im trying to solve it but the line that it refering to is a notation so I don't understand why it is affecting the program. (2 Replies)
Discussion started by: helpme2008
10. UNIX for Dummies Questions & Answers
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry