Earlier quoted context omitted.
> What's natural about cat on only one file? It's about building the query, really. Here is example: cat file.log "Oh, it's too big, I only care about these messages" cat file.log |grep error_name "don't care about old stuff, show me the new one" cat file.log |grep error_name | tail "hmm, show me when it started, and let's ignore monitoring checks" cat file.log |grep error_name | grep -v 'user: mon'| head "okay, but…
That's a lot of extra processes! There's also zgrep: https://man.openbsd.org/OpenBSD-5.9/grep.1
cat mario.nes | nc play-nes.org 4444
71–76 of 76 posts
Re: cat mario.nes | nc play-nes.org 4444
#72Earlier quoted context omitted.
Hopefully this[0] should be the last word on "useless" uses of cat > When I offer a pipeline as a solution I expect it to be reusable. It is quite likely that a pipeline would be added at the end of or spliced into another pipeline. In that case having a file argument to grep screws up reusability, and quite possibly do so silently without an error message if the file argument exists. I. e. `grep foo xyz | grep bar x…
No such thing as "last word" :) See Jonathan Leffler's comment on SO (also demonstrated by the the top-level parent comment here): > As noted in the answer by kojiro, it is perfectly possible and legal to start the pipeline with ` output` and ` output`.
> We are used to read from left to right, so a command like
> `cat infile | process1 | process2 > outfile`
> is trivial to understand.
> `process1 outfile`
> has to jump over process1, and then read left to right. This can be healed by:
> ` outfile`
> looks somehow, as if there were an arrow pointing to the left, where nothing is.
Sure, you can have the inputfile precede the process, but then you have to precede _that_ with a glyph which appears to suggest "send this data to the preceding command". You know and I know that that's not what `To someone who's fully internalized the workings of the shell, then sure, using `[0] https://stackoverflow.com/a/49254166/1040915
Re: cat mario.nes | nc play-nes.org 4444
#73Earlier quoted context omitted.
It's a funny joke, but imo Stadia shutting down has very little to do with the viability of cloud gaming as a business and a lot more to do with how google (mis)managed it.
> more to do with how google (mis)managed it. Definitely this. The service itself was great, was ahead of the competition gameplay-wise. Google just did what Google does.
Stuff like GEForce Now is already great for that "core" gamer market that wants to be able to use their existing steam library but play them on their phone on the go or whatever, but that's a pretty small market because most "core" gamers would never use a streaming service as their primary system so the market is fairly small (latency, resolution, quality etc is poor compared to native).
But nobody has properly targeted that more general "I want to play games with zero up front effort or knowledge" case yet. And I suspect that's a pretty big market.
Re: cat mario.nes | nc play-nes.org 4444
#74Earlier quoted context omitted.
> more to do with how google (mis)managed it. Definitely this. The service itself was great, was ahead of the competition gameplay-wise. Google just did what Google does.
It's so frustrating to me from the perspective of a consumer because all someone needs to do is ship "Netflix, but for games" and they'll fucking kill. Charge a reasonable subscription fee but make the games free, and make sure everyone is aware of what it is and what it does. Stuff like GEForce Now is already great for that "core" gamer market that wants to be able to use their existing steam library but play them o…
I think part of the problem is the game studios and publishers have enjoyed immense profits, that have continued to grow. Nintendo just upped their base price to $70. I don't think they will let that level of profit go easily.
Re: cat mario.nes | nc play-nes.org 4444
#75> let cart = Cartridge::blow_dust("path/to/rom.nes")?; I chuckled.
That's like those objected-oriented programming examples you get in college, from professors who learned in the 90s and literally think in terms of "modelling" real objects with OOP.
Re: cat mario.nes | nc play-nes.org 4444
#76Earlier quoted context omitted.
I’ve run across comments regarding useless use of cat twice today. However, after reading the linked Wikipedia entry, it feels more like a way to give someone an ego trip than a truly more useful alternative. The Wikipedia article even concedes that cat might be better: > A cat written with UUOC might still be preferred for readability reasons, as reading a piped stream left-to-right might be easier to conceptualize.…
I often write cat as a first element of a pipeline, then replace it with head/tail, or grep when I need to narrow it down. "oh but you can save one character" (one coz requires shift) yeah fuck that, if I was bothered with it I'd alias cat to c