Hi All,
I am writing a shell script code. and i want the stderr to be send to a file and the stdout to be displayed in terminal. In my shell script code i use a read command to get data from user.
read -r -p "Enter the type :" data
and while i execute my script i use
./my_script.sh 2> filename
My doubt is why Enter the type:
which I use with read command is not displayed in terminal, but in STDERR instead (filename) ??
Any insight will be helpful to me:D