Task: Implement Correct Bash Negation Syntax for Conditional Statements
Task: Implement Correct Bash Negation Syntax for Conditional Statements: a task in Terminal-Lego-15k (Harbor dataset). You need to write a bash script that correctly implements a negated conditional check. The script should check if a specific user ("sysa") does NOT exist in the /etc/passwd file…
The task
You need to write a bash script that correctly implements a negated conditional check. The script should check if a specific user ("sysa") does NOT exist in the `/etc/passwd` file, and if the user is not found, print an error message and exit with code 2.
Part of PrimeIntellect/Terminal-Lego-15k.