Error Handling in Shell Scripting
Task 1 : Checking Exit Status
Q. Write a script that attempts to create a directory and checks if the command was successful. If not, print an error message.
#!/bin/bash
# User input to create directory
read -p "Enter directory that you want to c...
ojasj45.hashnode.dev4 min read