All Questions
4 questions
-1
votes
2
answers
126
views
while there is no line 16 but still giving error "line 16 : syntax error: unexpected end of line" [closed]
a=10
b=20
c=30
if [[ $a -gt $b && $a -gt $c ]]
then
echo "A is the greater number"
if [[ $b -gt $a && $b -gt $c ]]
then
echo "B is the greater number"
else
echo &...
0
votes
1
answer
337
views
Unfamiliar with CMAKE, possible error in configuration [duplicate]
I am trying to install (https://github.com/NOAA-EMC/NCEPLIBS) for a post processing toolkit. I have downloaded and installed the required libraries to a build folder:
#############################...
0
votes
1
answer
133
views
pasting correct if statement (indented with '\t') in terminal (bash) gives syntax error
I get syntax error and a prompt 'Display all 2733 possibilities? (y or n)' when I paste the following in terminal in ubuntu 14.04. The lines are indented with '\t' characters. No errors if I replace '\...
30
votes
1
answer
10k
views
CRONTAB syntax error
Herer is my CRONTAB file (Ubuntu 10.10):
57 1 * * 2-6 ET=`date --date 'yesterday'+%Y%m%d`;echo $ET
Even The syntax color indicate that something is wrong. and there is this error:
Subject: Cron &...