URL: https://linuxfr.org/forums/linux-debutant/posts/table-output Title: table output Authors: toto Date: 2015年04月24日T16:05:47+02:00 License: CC By-SA Tags: bash, shell, linux, tableau et script_shell Score: -4 i have this code in shell but i want an output in a table anyone can help? ```bash #!/bin/bash Rep_Scripts='/home/scripts' out_file='/home/scripts/out_file' rm -rf $Rep_Scripts/out_file for i in `cat $Rep_Scripts/IP_ALU_LIST.txt | awk '{print}'` do read hostname ip <<< $(echo $i |sed 's/;/ /') echo "${hostname} ==> ${ip} If_Name">> out_file snmpwalk -v2c -c ${ip} OID>> out_file echo "${hostname} ==> ${ip} Global_If_Index">> out_file snmpwalk -v2c -c ${ip} OID>> out_file echo "${hostname} ==> ${ip} If_Statut">> out_file snmpwalk -v2c -c ${ip} OID>> out_file done ``` output i have ``` Routeur 2 ==> 89.89.156.112 If_Name :vRtrIfName.1.1 :vRtrIfName.1.2 Routeur 2 ==> 89.89.156.112 If_index 546 789 Routeur 2 ==> 89.89.156.112 If_status 1 2 ``` output i want : ``` routerName IPadd If_Name If_index If_status Routeur 2 89.89.156.112 :vRtrIfName.1.1 546 1 Routeur 2 89.89.156.112 :vRtrIfName.1.2 789 2 ```

AltStyle によって変換されたページ (->オリジナル) /