あいたたた、検証してたら先を越された。
当方FreeBSD環境なので下記、
[usr@host ~/programing]$ cat command_file
ls
ifconfig
pkg info
[usr@host ~/programing]$
[usr@host ~/programing]$
[usr@host ~/programing]$ IFS=$'\n' ;for com in cat command_file
; do "${com}" ; done
asm c-work command_file Hello network_programing rmtest shell_work
big_num_sum.txt c++ Fortran java perl ruby sql_work
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1454
options=82099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether 6c:f0:49:01:06:ec
inet 172.16.11.230 netmask 0xffffff00 broadcast 172.16.11.255
inet6 fe80::6ef0:49ff:fe01:6ec%re0 prefixlen 64 scopeid 0x1
inet6 2400:4050:8340:ab00:6ef0:49ff:fe01:6ec prefixlen 64 autoconf
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1454
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether 4c:e6:76:d8:58:19
inet6 fe80::4ee6:76ff:fed8:5819%re1 prefixlen 64 scopeid 0x2
inet 10.1.0.254 netmask 0xffffffff broadcast 10.1.0.254
media: Ethernet autoselect (none)
status: no carrier
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet 192.168.0.230 netmask 0xffffffff
inet6 fe80::1%lo1 prefixlen 64 scopeid 0x4
inet6 fd2e:7e5e:c921:be0:192:168:0:230 prefixlen 128
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
bash: pkg info: コマンドが見つかりません
[usr@host ~/programing]$
pkg infoについては要追跡調査。