-
-
Save AlexDaniel/731797120ddf20def7b7446aea12c617 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env julia | |
pat = r"^ | |
( \S+ ) \s+ | |
( \S+ ) \s+ | |
( \S+ ) \s+ | |
( \S+ ) | |
$"x | |
for line in readlines() | |
m = match(pat, line) | |
m === nothing && throw("invalid line") | |
(date, time, size, path) = (m[1], m[2], m[3], m[4]) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment