Search Results

Search: Posts Made By: dc_dc
5,192
Posted By dc_dc
Thanks it worked Initially I created the sh...
Thanks it worked

Initially I created the sh file using Textpad in windows8 and ftpied it to Linux. even though opening the sh file thru vi editor the special chars where not visible
5,192
Posted By dc_dc
+ l_filesleft=$'1\r' mc.sh: line 8: syntax...
+ l_filesleft=$'1\r'
mc.sh: line 8: syntax error near unexpected token `fi'
mc.sh: line 8: ` fi'
5,192
Posted By dc_dc
Hi That is the complete set of code, ends with...
Hi
That is the complete set of code, ends with fi
when I remove the emplty line after fi the error is


mc.sh: line 8: syntax error near unexpected token `fi'
mc.sh: line 8: ` fi'

Thanks...
5,192
Posted By dc_dc
even though I am using ; before then I am...
even though I am using ; before then
I am getting the same error

Thanks
5,192
Posted By dc_dc
Linux- shell script - if then else - error
Hi
I am using Linux, I am getting the error while executing the shell script., the code in the shell script is

# $Header:$
#!/bin/ksh
l_filesleft=1
if [ $l_filesleft -gt 0 ] then
echo "File...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 07:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy