Question
INTRO TO UNIX QUESTIONS. Please, Answers only! Thanks. 1. Write a shell script to validate password strength. Here are a few assumptions for the password
INTRO TO UNIX QUESTIONS.
Please, Answers only! Thanks.
1. Write a shell script to validate password strength. Here are a few assumptions for the password string.
-Length should be a minimum of 8 characters.
-Contain both alphabet and number.
-Include both the small and capital case letters.
-If the password doesnt comply to any of the above conditions, then the script should report it as a Weak Password otherwise display a Strong Password
2. Please explain what the following shell script is doing
#!/bin/bash dir=$1 for file in `ls $1/*` do mv $file $file.new done
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started