Hi I am new to bash scripting. I am trying to write a code that provides me all the files for the username entered by the user when prompted and the file modified date as entered by the user. I am not able to sort and display the files with the date provided by the user. Please help.
#!/bin/bash
echo "Enter your username: "
read username
echo "Enter the date file is created: "
read date
ls -l | find mypath -user "$username" | find mypath -regextype posix-extended -regex "^[0-9]*[- / .][0-9]*[- / .][0-9]*$" "$date"