I wrote the following script. I want to read a file and print as line by line but it considering space as new line. why is that? #!/bin/bashfor i in `cat data.txt`doecho $idoneInput: Saved in file name data.txtB  FM_Server10_grp GPCBIOEMM10          Y          N               ONLINEOutput: BFM_Server10_grpPCBIOEMM10YNONLINEAnother question: How can I extract only number value like 10 from GPCBIOEMM10? 
Why space is being counted as newline in shell script?
linux;shell script