I have to create a code, which is below this, and when the user enters their name, password, and then a password confirmation, I need to send their details to a .txt file with the time and date inside the file, any hints would be appreciated!
#!/bin/bash read -p "Username: " username while true; do read -s -p "Please enter your password: " password echo read -s -p "Please re-enter your Password: " password2 echo [ "$password" = "$password2" ] && break echo "Please ensure your passwords match!" done Before I get the "just google it" thing, I have looked how to send specific commands to the file, but I need the date/time accessed sent to the .txt
datecommand will give you the current date and time