Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

$ cat /usr/share/dict/words | shuf | head -n 10

$ convert foo.png foo.jpg

Took me almost literally two seconds to come up with that, unless your point is that at one point I had to learn it which, yeah, sure. What am I missing?



As the parent comment says, the specifics of the example are irrelevant. Pretend you didn’t know that the dictionary file existed, or where it was stored, or that cat/shuf/head existed, or even how to compose programs in your shell.


Bravo - for these simple things, typing in a GPT prompt or search query is more work than the command.

Even things like "what flags to use with ffmpeg" are a shell reverse-history search away, assuming one has ever used them in the past.


That’s quite the assumption! You’d also have to know that your shell maintains a history and know how to search it. None of these things are obvious to those who do not already know them. We all had to learn at some point.


You're missing that some folk haven't learned that yet - and that others have forgotten it.

In 2013 I was using complex ffmpeg commands and using filters in there. Could remember the stuff easy. Now, I've gotta reference my ffmpeg notes more frequently.

Where's that XKCD about using the tar command?


> Where’s that XKCD about using the tar command?

As of my last knowledge update in January 2022, I can't provide specific details about the latest XKCD comics or their numbers because my training data only includes information available up to that time. However, you can easily find XKCD comics on the official XKCD website (xkcd.com) by using the search function or by browsing through the archives.

If there's a specific XKCD comic related to the "tar" command that you're looking for, you might be able to find it by searching for keywords like "XKCD tar command" on a search engine or directly on the XKCD website. The website has a good search feature that allows you to find comics based on keywords or topics.


With gpt4 and browsing enabled it searches the web and returns

> The XKCD comic about using the `tar` command can be found at [XKCD Comic #1168](https://xkcd.com/1168/). The comic humorously addresses the complexities and challenges of remembering the correct syntax for the `tar` command, a common scenario for many who use Unix-based systems.


ffmpeg is kind of a special case; the CLI for that is far more complex than almost anything else I've ever seen.

tar xf for extract. Add v to show the files. tar cf to create. tar tf to "test" (list). Add -C dir at the end to extract to different directory. Set file to "-" for stdin.

That's all there's to it for 99% of use cases. I don't get how anyone can have difficulty with that: f for file, and x/c/t are pretty mnemonic.


You've missed the point from the example. We can remember complex things when they are close. And even forget common things. GPT can help with both cases.


Well, convert does the conversion for you… it’s kind of challenging to come up with an example where there isn’t already a tool/package/library for X. But like pretend there wasn’t one for converting images… you can’t just off-the-cuff that.


Okay GPT, tell me the bash command to convert a PNG to a JPG and add a sarcastic comment at the end.


Sarcastic? I'm earnestly perplexed.


I'm just as perplexed that you're perplexed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: