A shell script to read file line by line
Note: In the input file you need to have a new line ends with. See input.txt
.
cd path_to_shell-read-file/
chmod u+x read.sh
./read.sh
The above will throw error
./read.sh dummy
The above will throw error
./read.sh ./input.txt
The above will display the data
ParthaSaradhiKonda<parthasaradhi.konda@gmail.com>