This website requires JavaScript.
Explore
Help
Sign In
magical
/
adventofcode2023
Watch
1
Star
0
Fork
You've already forked adventofcode2023
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
f58ed8eb97
adventofcode2023
/
day01
/
sol.awk
3 lines
90 B
Awk
Raw
Blame
History
{
gsub
(
"[^0-9]"
,
" "
)
;
gsub
(
"[0-9]"
,
"& "
)
;
n
=
$
1
$
NF
;
T
+=
n
;
print
n
}
END
{
print
T
}
Reference in New Issue
View Git Blame
Copy Permalink