M
majkel-bewit
Jungspund
Hallo an alle!
Ich habe zwei Textdateien.
Erste sieht so aus:
iptables -t filter -I vpn_users -p tcp -s dynamicipoftheuser -d
iptables -t filter -I vpn_users -p udp -s dynamicipoftheuser -d
iptables -t filter -I vpn_users -p tcp -s dynamicipoftheuser -d
iptables -t filter -I vpn_users -p udp -s dynamicipoftheuser -d
....
und zweite:
nagios
buildbot
apache
ssl
....
ich möchte:
iptables -t filter -I vpn_users -p tcp -s dynamicipoftheuser -d nagios
iptables -t filter -I vpn_users -p udp -s dynamicipoftheuser -d buildbot
iptables -t filter -I vpn_users -p tcp -s dynamicipoftheuser -d apache
iptables -t filter -I vpn_users -p udp -s dynamicipoftheuser -d ssl
....
Vielen Dank für Hilfe!
.
.
.
EDIT (autom. Beitragszusammenführung) :
.
Ich versuche gerade etwas zu basteln mit Hilfe von http://www.unixboard.de/vb3/showpost.php?p=271812&postcount=6
Ach, geschaft mit:
exec 3<foo3.txt
exec 4<foo4.txt
while read eins<&3 && read zwei<&4; do
echo "$eins" "$zwei" >> foo5.txt
done
Danke! :-)
Ich habe zwei Textdateien.
Erste sieht so aus:
iptables -t filter -I vpn_users -p tcp -s dynamicipoftheuser -d
iptables -t filter -I vpn_users -p udp -s dynamicipoftheuser -d
iptables -t filter -I vpn_users -p tcp -s dynamicipoftheuser -d
iptables -t filter -I vpn_users -p udp -s dynamicipoftheuser -d
....
und zweite:
nagios
buildbot
apache
ssl
....
ich möchte:
iptables -t filter -I vpn_users -p tcp -s dynamicipoftheuser -d nagios
iptables -t filter -I vpn_users -p udp -s dynamicipoftheuser -d buildbot
iptables -t filter -I vpn_users -p tcp -s dynamicipoftheuser -d apache
iptables -t filter -I vpn_users -p udp -s dynamicipoftheuser -d ssl
....
Vielen Dank für Hilfe!
.
.
.
EDIT (autom. Beitragszusammenführung) :
.
Ich versuche gerade etwas zu basteln mit Hilfe von http://www.unixboard.de/vb3/showpost.php?p=271812&postcount=6
Ach, geschaft mit:
exec 3<foo3.txt
exec 4<foo4.txt
while read eins<&3 && read zwei<&4; do
echo "$eins" "$zwei" >> foo5.txt
done
Danke! :-)
Zuletzt bearbeitet: