Answer the question
In order to leave comments, you need to log in
`
I can't run a bash script, an error occurs - syntax error near unexpected token `{?
can't run script
#!/bin/bash
function function1 {
echo "Привет"
}
count=1
while [ $count -le 3 ]
do
function1
count=$[ $count + 1 ]
done
echo "повторим"
function1
Answer the question
In order to leave comments, you need to log in
Thanks everyone. It also works function function1() {
and this is how
function function1 works {
My rake was that in notepad plus plus I did not put the end of the lines LF (I had CRLF so the script did not work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question