Re:Designing a programming language to speedrun Advent of Code
by robertlagrant on Tuesday November 14, 2023 @04:10AM
(#38260853)
I'm surprised that file> command isn't the preferred idiom. Does that mean something else?
[ Parent
| on HN ]
Re:Designing a programming language to speedrun Advent of Code
by hnlmorg on Tuesday November 14, 2023 @04:13AM
(#38260877)
Yes, that would write to a file called "command". So the correct way to write that would be:
command > file
https://www.gnu.org/software/bash/manual/html_node/Redirecti...
Re:Designing a programming language to speedrun Advent of Code
by smrq on Tuesday November 14, 2023 @04:16AM
(#38260909)
That would execute the command `file` and put the output into the file `command`.
Re:Designing a programming language to speedrun Advent of Code
by robertlagrant on Tuesday November 14, 2023 @04:23AM
(#38260960)
Oh, now I re-read it - of course! Hah.