fc-list | cut -d: -f 2
...
Ubuntu Mono
fc-match --format='%{charset}\n' 'Ubuntu Mono'
20-7e a0-24f 292 2bc 2c6-2c7 2c9 2d8-2dd 311 384-386 388-38a 38c 38e-3a1 3a3-3ce 400-45f 462-463 472-475 48a-4f9 1e80-1e85 1ef2-1ef3 1f00-1f15 1f18-1f1d 1f20-1f45 1f48-1f4d 1f50-1f57 1f59 1f5b 1f5d 1f5f-1f7d 1f80-1fb4 1fb6-1fc4 1fc6-1fd3 1fd6-1fdb 1fdd-1fef 1ff2-1ff4 1ff6-1ffe 2013-2015 2018-201a 201c-201e 2020-2022 2026 2030 2039-203a 2044 2070 2074-2079 2080-2089 20ac 20ae 20b4 20b9 2113 2116 2122 2126 212e 2153-215e 2202 2206 220f 2211-2212 2215 2219-221a 221e 222b 2248 2260 2264-2265 2500 2502 250c 2510 2514 2518 251c 2524 252c 2534 253c 2550-256c 2588 2591-2593 25ca e0ff effd f000-f002 f506-f511 f80a-f81d fb01-fb02 fff
docker run -it alpine:3.9 sh
# ip address show eth0
eth0@if15: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP
link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.2/16 brd 172.17.255.255 scope global eth0
valid_lft forever preferred_lft forever
# ip route show
default via 172.17.0.1 dev eth0
172.17.0.0/16 dev eth0 scope link src 172.17.0.2
nc -z 172.17.0.1 22
/ # echo $?
0
172.17.0.1
CMD ["/bin/bash"]
docker build -t xxx -f Dockerfile .
docker run -it xxx
testuser@6a86a940f044:~$ echo $SHELL
/bin/bash
testuser@6a86a940f044:~$ exit
$curdir = (resolve-path '.').Path
$data = [xml] (get-content ($curdir + '\' + $filename )) -join ''
# https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmltextwriter?view=netframework-4.0
$cnt=1; $good_data.root.post | foreach-object {
$post = $_
if ($debug){
[System.xml.XmlTextWriter]$w = new-object System.xml.XmlTextWriter([Console]::out)
$post.WriteTo($w)
}
$f = "${curdir}\a${cnt}.xml"
[System.xml.XmlTextWriter]$w = new-object System.xml.XmlTextWriter($f, [System.Text.Encoding]::Ascii)
write-host ('write post {0} to {1}' -f $cnt, $f)
$post.WriteTo($w)
$w.flush()
$w.close()
$cnt++
}
$curdir = (resolve-path '.').Path
$bad_data = (get-content ($curdir + '\' + $filename )) -join ''
# strip the header
$bad_data = $bad_data -replace '<\?xml.*\?>' , ''
# wrap bad data in root element
[xml]$good_data = [xml] ('{0}{1}<root>{2}</root>' -f '<?xml version="1.0" encoding="UTF-8"?>', ([char]10), $bad_data)