Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Created July 8, 2020 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexDaniel/731797120ddf20def7b7446aea12c617 to your computer and use it in GitHub Desktop.
Save AlexDaniel/731797120ddf20def7b7446aea12c617 to your computer and use it in GitHub Desktop.
#!/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