Is it possible to print out the user's inputs with color+bold+italic?
I would like to print the user's all inputs in color+bold+italic
while he/she answering to "read"
command. Here is a small script.
read -p "Enter the file extension that you want to search
$(printf "Example- \"*.jpg\" or \"*.iso\" and so on\n"): " ext
echo "You have choose \"$ext\" "
read -p "Enter the path that you want to search in
$(printf "Example- \"/var/www\" or \"/home\" and so on\n") : " path
echo "You have choose to search in \"$path\" "
Now whatever user answers, I wanted it to be in redcolor+bold+italic
# bash test
Enter the file extension that you want to search
Example- "*.jpg" or "*.iso" and so on: *.avi
You have choose "*.avi"
Enter the path that you want to search in
Example- "/var/www" or "/home" and so on : /home
You have choose to search in "/home"
In the above I have selected *.avi
. So I wanted it to print out with redcolor+bold+italic
while the user is answering to this script's question. I don't know how it can be done with bash. So please help me.
Thanks in advance for your kind help.