HI all, i'm sure this will be very easy for scripts experts.
I send a command wich reports things like:
U787A.001.DPM037W-P1-T7,osiris,Universal Serial Bus UHC Spec
U787A.001.DPM037W-P1-C4,osiris,PCI 1Gbps Ethernet UTP
U787A.001.DPM037W-P1-T12,osiris,Other Mass Storage Controller
U787A.001.DPM037W-P1-T10,osiris,Storage controller
U787A.001.DPM037W-P1-C3,osiris,PCI 10/100Mbps Ethernet w/ IPSec
But when i send the same command in a shell script to send the result in a file, i get the result on a single line. I tried different ways using for example a loop to get each result and send it to the output file but space carracters are interpreted as \n
Then, what should i do do to get the result in the ouput file exactly like when i send the command in interactive mode ?
I send a command wich reports things like:
U787A.001.DPM037W-P1-T7,osiris,Universal Serial Bus UHC Spec
U787A.001.DPM037W-P1-C4,osiris,PCI 1Gbps Ethernet UTP
U787A.001.DPM037W-P1-T12,osiris,Other Mass Storage Controller
U787A.001.DPM037W-P1-T10,osiris,Storage controller
U787A.001.DPM037W-P1-C3,osiris,PCI 10/100Mbps Ethernet w/ IPSec
But when i send the same command in a shell script to send the result in a file, i get the result on a single line. I tried different ways using for example a loop to get each result and send it to the output file but space carracters are interpreted as \n
Then, what should i do do to get the result in the ouput file exactly like when i send the command in interactive mode ?