cat <file1>name=HOST2WWN=50.01.43.80.29.6A.84.82WWN=50.01.43.80.29.6A.84.89WWN=50.01.43.80.29.6A.84.8AobjectID=LU.R800.57488.43objectID=LU.R800.57488.44objectID=LU.R800.57489.44name=HOST3WWN=50.01.43.80.28.55.99.5CWWN=50.01.43.80.28.55.99.5DobjectID=LU.R800.57488.45objectID=LU.R800.57488.46objectID=LU.R800.57488.47objectID=LU.R800.5748A.47name=HOST2WWN=50.01.43.80.29.6A.84.87WWN=50.01.43.80.29.6A.84.88objectID=LU.R800.57486.41objectID=LU.R800.57486.42objectID=LU.R800.57486.43I need output to be like this. can someone assist in shellHOST2 50.01.43.80.29.6A.84.82 LU.R800.57488.43HOST2 50.01.43.80.29.6A.84.82 LU.R800.57488.44HOST2 50.01.43.80.29.6A.84.82 LU.R800.57489.44HOST2 50.01.43.80.29.6A.84.89 LU.R800.57488.43HOST2 50.01.43.80.29.6A.84.89 LU.R800.57488.44HOST2 50.01.43.80.29.6A.84.89 LU.R800.57489.44HOST2 50.01.43.80.29.6A.84.8A LU.R800.57488.43HOST2 50.01.43.80.29.6A.84.8A LU.R800.57488.44HOST2 50.01.43.80.29.6A.84.8A LU.R800.57489.44HOST3 50.01.43.80.28.55.99.5C LU.R800.57488.45HOST3 50.01.43.80.28.55.99.5C LU.R800.57488.46HOST3 50.01.43.80.28.55.99.5C LU.R800.57488.47HOST3 50.01.43.80.28.55.99.5C LU.R800.5748A.47HOST3 50.01.43.80.28.55.99.5D LU.R800.57488.45HOST3 50.01.43.80.28.55.99.5D LU.R800.57488.46HOST3 50.01.43.80.28.55.99.5D LU.R800.57488.47HOST3 50.01.43.80.28.55.99.5D LU.R800.5748A.47HOST2 50.01.43.80.29.6A.84.87 LU.R800.57486.41HOST2 50.01.43.80.29.6A.84.87 LU.R800.57486.42HOST2 50.01.43.80.29.6A.84.87 LU.R800.57486.43HOST2 50.01.43.80.29.6A.84.88 LU.R800.57486.41HOST2 50.01.43.80.29.6A.84.88 LU.R800.57486.42HOST2 50.01.43.80.29.6A.84.88 LU.R800.57486.43
formatting data in shell script
shell script;text processing