Tuyết Trinh Nguyễn
New member
How do I open a text file in shell script?
Answer
If you want to read each line of a file by omitting backslash escape then you have to use ‘-r’ option with read command in while loop.
Create a file named company2.
txt with backslash and run
the following command to execute the script. The output will show the file content without any backslash.
Answer
If you want to read each line of a file by omitting backslash escape then you have to use ‘-r’ option with read command in while loop.
Create a file named company2.
txt with backslash and run
the following command to execute the script. The output will show the file content without any backslash.