A
A
Andrey2019-03-03 00:46:49
bash
Andrey, 2019-03-03 00:46:49

Is the syntax correct?

$arr%2==1 && echo first : echo second
Is the syntax correct? Also, could you please tell me what is the name of this post or where can I read it? Thank you)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitsliputsli, 2019-03-03
@Vitsliputsli

&& echo first || echo second
You can read it in the manpage in the SHELL GRAMMAR section. Lists.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question