lua-users home
lua-l archive
Re: Simple write to files-request for help
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Simple write to files-request for help
From
: Patrick <patrick@
...
>
Date
: 2011年12月29日 11:32:11 -0500
On 11-12-29 10:59 AM,
chuck@allthehowards.com
wrote: [
io.open ("IP1.dat" , w)
io.open ("IP2.dat" , w)
for s in io.lines("2011_12_02_sfccnetword20.txt") do
for a in s:gmatch("DHCP.-to MAC address (.-),") do print("MAC",a) end
for a in s:gmatch("DoS.-from ip.%[(.-)%]") do print("IP1",a) end
for a in s:gmatch("LAN.-%] from (.-):.- to") do print("IP2",a) end
end
Chuck
I already showed you io.write offlist before this posting. A simple search for lua io.write would have turned up lots of examples on the net.
Other list members have helped me so much over the past two years and I am trying to work off the debt helping others but please do put in some effort.
Prev by Date:
Re: Simple write to files-request for help
Next by Date:
Re: Crash when calling C from a finalizer
Previous by thread:
Re: Simple write to files-request for help
Next by thread:
Re: Simple write to files-request for help
Index(es):
Date
Thread
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル