RosettaCodeData/Task/Conditional-structures/UNIX-Shell/conditional-structures-6.sh
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

2 lines
94 B
Bash

if (3 < 5) echo '3 is less than 5'
if ({ grep -q ^root: /etc/passwd }) echo 'passwd has root'