RosettaCodeData/Task/Conditional-structures/UNIX-Shell/conditional-structures-6.sh

3 lines
94 B
Bash

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