created shell dir

This commit is contained in:
2025-02-23 15:43:13 +00:00
parent b1f506bbd9
commit 4372a9042b
14 changed files with 0 additions and 0 deletions

12
shell/secret.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
echo -n Your age:
read AGE
#Problem with output as () cause to execute command in subshell.
#[ $AGE -lt 20 ] && (echo You are not allowed to see secret; exit 1) || echo Welcome
#command execute it same shell
[ $AGE -lt 20 ] && { echo You are not allowed to see secret; exit 1;} || echo Welcome
echo Secret is that there is no secret