Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Add script to generate random password
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcc1212 committed Mar 1, 2024
1 parent 49a9b0f commit 74b8007
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bashExercise/11.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Generate a random password
PASSWORD=$(LC_ALL=C tr -dc 'a-zA-Z0-9!@#$%^&*()' < /dev/urandom | fold -w 8 | head -n 1)

# Print the password
echo "Generated Password: $PASSWORD"

0 comments on commit 74b8007

Please sign in to comment.