Hi have a large spreadsheet which has 4 columns
APM00111803814 server_2 96085 Corp IT Desktop and Apps
APM00111803814 server_2 96085 Corp IT Desktop and Apps
APM00111803814 server_2 96034 Storage Mgmt Team
APM00111803814 server_2 96152 GWP Implementations UK
APM00111803814 server_2 96138 GWP Production-UK
APM00111803814 server_2 96109 GWP Production - US
I need to be able to read this file and define a variable for each entry in each column. The last column has spaces but I want to be able to read it a one variable. I am trying to put it into a while loop but the last column will only read the first word/characters (for example in the first line Corp)
For example
while read c1 c2 c3 c4
do
echo "$c1 $c2 $c3 $c4"
done < file.txt
Obviously this does not work. Can anybody help me out with this?