apt-cache show original-awk
Package: original-awk
Version: 2012-12-20-2
Installed-Size: 195
Maintainer: Santiago Vila <sanvila@debian.org>
Architecture: amd64
# apt-cache show mawk
Package: mawk
Version: 1.3.3-17
Installed-Size: 198
Maintainer: Steve Langasek <vorlon@debian.org>
Architecture: amd64
Provides: awk
awk -v N=1 -F"," '$N ~ /^[0-9]{11}$/ {print $N}' pro3.csv >> proOUT.csv
$ cat pro3.csv
Идентификатор,Длина,Вес
8d154caa-a50f-43b7-b788-4f32789e7f62,4,3
44dfa335-22e5-4a22-8fe1-3593690c9059,4,2
7e9b1637-409a-4d47-ba48-0b0ff3920011,5,4
00000002406,2,1
1eaf610d-4e98-4c8f-985f-a588a693a1ff,13,20
e9886cdc-e97c-49a2-bbcd-085885fc3c19,3,4
375e4045-db60-49fa-99ad-3942b47f9980,4,7
00000000974,5,1
00000001261,2,н.в
00000000980,7,1
00000000987,11,8
00000003281,4,5
ip route export
/ip route
add check-gateway=ping distance=1 gateway=192.168.99.55 routing-mark=web
add distance=1 dst-address=192.168.99.0/24 gateway=l2tp-out1
ip firewall export
/ip firewall mangle
add action=mark-routing chain=prerouting dst-port=80 new-routing-mark=web protocol=tcp src-address=192.168.77.11
/ip firewall nat
add action=masquerade chain=srcnat comment=NAT_for_home_lan out-interface=ether1-gw src-address=192.168.77.0/24 to-addresses=10.141.170.32
ip route export
/ip route
add distance=1 gateway=192.168.99.55 routing-mark=web
add distance=1 gateway=$шлюз_прова1 #дефолтный маршрут
add distance=1 dst-address=192.168.77.0/24 gateway=l2tp-mikrotik77
ip firewall export
/ip firewall mangle
add action=mark-routing chain=prerouting comment=http dst-address=!192.168.99.0/24 dst-port=80 new-routing-mark=web protocol=tcp src-address=\
!192.168.99.55 src-address-list=http_to_squid
/ip firewall nat
add action=src-nat chain=srcnat comment="default configuration" out-interface=ether1-gateway src-address=192.168.99.0/24 to-addresses=$шлюз_прова1
ip route print detail
0 S dst-address=0.0.0.0/0 gateway=192.168.99.55 gateway-status=192.168.99.55 unreachable check-gateway=ping distance=1 scope=30 target-scope=10
routing-mark=web
1 ADS dst-address=0.0.0.0/0 gateway=10.141.255.254 gateway-status=10.141.255.254 reachable via ether1-gw distance=0 scope=30 target-scope=10
vrf-interface=ether1-gw
2 ADC dst-address=10.141.0.0/16 pref-src=10.141.170.32 gateway=ether1-gw gateway-status=ether1-gw reachable distance=0 scope=10
3 ADC dst-address=172.16.1.1/32 pref-src=172.16.1.2 gateway=l2tp-out1 gateway-status=l2tp-out1 reachable distance=0 scope=10
4 ADC dst-address=192.168.77.0/24 pref-src=192.168.77.1 gateway=bridge1-local gateway-status=bridge1-local reachable distance=0 scope=10
5 A S dst-address=192.168.99.0/24 gateway=l2tp-out1 gateway-status=l2tp-out1 reachable distance=1 scope=30 target-scope=10
/ip route
add distance=1 gateway=192.168.99.55 routing-mark=web
add distance=1 gateway=$шлюз_прова1
add distance=1 dst-address=192.168.99.0/24 gateway=172.16.0.13/30
/ip route
add distance=1 gateway=192.168.99.55 routing-mark=web
add distance=1 gateway=$шлюз_прова2
add distance=1 dst-address=192.168.77.0/24 gateway=172.168.0.14/30
tool traceroute 192.168.99.55
# ADDRESS LOSS SENT LAST AVG BEST WORST STD-DEV STATUS
1 172.16.0.13 0% 6 2.8ms 2.9 2.7 3.2 0.2
2 192.168.99.55 0% 6 2.9ms 3.4 2.4 7.7 1.9