My requirement is to read a file which contains regular expression and use that expression in my find command.I will not use all the regular expression which is there inside the file, Based on certain condition I will use it for that day. I used below regular expression inside a file.
Daily|xyz|abc_def_tem_[0-9]\{8,\}|
I am reading each line using while loop. When I print the line which read it from file. I am getting below output.I am losing my curly braces and , in the output because of this my find command is giving error output.
I'm not familiar with Korn Shell, but if <<< works there in a similar way as it does in bash, this would explain the effect you are experiencing. At least in bash, brace expansion is performed on the input word, which would explain why the braces disappear.
What exactly is the reason that you are using <<< here?