Okay soo... I have been working on a "notepad" script using bash. I basically have finished it but it lacks one thing. Verification if the user has typed anything! I started searching on google how i could do that, and found nothing (lol).
I'm asking help from you people :D

Here's the code that doesn't work.

while [[ $name != 'name' ]] || [[ $name == '' ]]
read -rp "What would you like the file name to be? The file extension is .txt!$(echo -ne '\n: ')" name
echo "Enter a valid file name please."

There's probably one small thing wrong anyway lol
Thanks already!

Your Job Suck?
Get a Better Job
Add Comment