6 ms·
Is it considered cheating to use files to "save state"? SPOILER: One thing I noticed doing this was that most of the interviews that weren't Alice in Wonderla
by noobermin 11y ago
Is it considered cheating to use files to "save state"?
SPOILER:
One thing I noticed doing this was that most of the interviews that weren't Alice in Wonderland snippets were less than 3 or 4 lines long. Rather than typing in the same long filtering for loop again and again, I basically outputting the list of "good interviews" to a file which was a `for i in $(cat goodinterviews);...` away. I wasn't sure if using the disk qualifies as just using the command line though...
Also, I think more or less (the commands) are cheating just as much as an editor but many associate less as more of a "command line" tool, so the author should specifically forbid it.
Also, grep -rn is a godsend in this case, might have made it too easy :) This was quite fun!