Live data from Hacker News

Twelve Days of Shell

12days.cmdchallenge.com

81–89 of 89 posts

Re: Twelve Days of Shell

#82

Earlier quoted context omitted.

Forget cheatsheets, tweets, videos, books, etc. Vim comes with a very well made built-in tutorial that will gently pull you toward maximum efficiency.

I love vim tutor! I learnt the basics of vim navigation through it. I'm yet to finish it since I dropped it after the first chapter to start using it as a daily driver and picking things as I need. I will probably come back and go through it again at some point and by then it will be another mind-blown situation

Hmm. It looks like I forgot a pointer to the actual tutorial. I wasn't talking about vimtutor, which only covers very basic topics, but about the much more extensive user manual: :help user-manual.

Re: Twelve Days of Shell

#83

Earlier quoted context omitted.

Respectfully, many would find that off-putting. "Advent of X" in tech is entirely decoupled from religion. Keeping it neutral seems to me the "nicest" approach. That said, something like what you described might be a cool exercise for your bible study group. Finally, I appreciated your "incidentally" aside about the origins of philology.

I'll preface this by saying I was never especially bothered or moved by the non-religious use of "Advent of X", for better or for worse. In fact, my remark is inspired only by your comment, concerning its consistency and who has the stronger case. Specifically, while it is true that certain kinds of words can become decoupled from their original meanings (which is generally normal), in this case, the usage is not so…

Thanks for the response. I don't intend to get into a protracted debate here, but would like to point out that the winter solstice holiday we call "Christmas" was itself appropriated from various traditions, esp. "Saturnalia" as practiced by the Romans. In modern times, countless non-religious homes in the US feature "advent calendars", with tiny treats hidden behind numbered doors. They -- like santa, elves, gift-giving, and "christmas" trees -- have nothing to do with Christian orthodoxy.

By all means, you should do what you think is "good". That's what I strive to do. My comment about "nice" was literally quoting you, so in trying to take me to task for that, as with your broader point, you've missed the mark. I don't think your hypocrisy is intentional, but I do feel good about pointing it out.

Have a nice day and holiday season! :)

Re: Twelve Days of Shell

#84
#11 was confusing as hell: this is what worked 'grep -R 'piping' ./place-for-pipers | cut -d: -f2-'

only content no filenames. Need to see the output if it's wrong to baseline what's being asked.

Re: Twelve Days of Shell

#85
post #15
post #14

As a developer I've been through 10 different languages and about the same number of operating systems, and I barely managed to remember any of them, even at the time. And I assume soon using natural language as the main interface will become commonplace, which will finally let me off the hook. I will give this a go, but I doubt any of it will stick!

Shell quotes is the last frontier LLM's seem to keep getting wrong. Esp when it's Github CI yaml which needs to ssh somewhere and run command running another command there. Needs AGI apparrently.

That and giving me GNU awk/grep/sed shit when I specifically asked for macOS/BSD.

Re: Twelve Days of Shell

#87
post #73
post #65

I thought there was too much ambiguity to several of the challenges: I gave up after the following exercise: On the eighth day of Shell my true love gave to me Eight elves in Santa's Workhop/ ... Hint: Try finding files named after Elves and moving them to the Workshop/ directory. It turns out, all they want is the files in the ./Elves directory to the ./Workshop directory. But I didn't figure that out.

You're overthinking it. You can get quite far with a bit of ls or find . -type f exploration

Failing to understand the basic requirement is not, IMHO, overthinking it.

I will admit, as I reread the question and the hint just now, that I just didn't read carefully the first time through. It's actually pretty clear. Sigh.

People's minds work quite differently ... As evidenced by people that have strong reactions to particular languages (love or hate), or, as another example, people that love or hate syntax coloring in code. (Yes, it gets in the way for some). The fact that the instructions didn't make the problem clear to me is not an overthinking problem on my part. It would be better for me if the problems were expressed in different ways.

When trying to communicate, saying the same thing two different ways is a big step towards helping deal with the variance in people's minds. I wish they'd done that with some of the questions.

Re: Twelve Days of Shell

#88
post #57
post #56

Earlier quoted context omitted.

Second question > awk '/^laugh/ { print $0 }' night-before-christmas.txt

Get rid of the caret and it works; it wants lines with laugh, not lines that start with laugh,

Ah cheers thanks, my stupid! (And what's worse - wasted some others attention and even thought what someone took time to create was at fault!) However thankful for kind directness there.

Re: Twelve Days of Shell

#89

Earlier quoted context omitted.

I love vim tutor! I learnt the basics of vim navigation through it. I'm yet to finish it since I dropped it after the first chapter to start using it as a daily driver and picking things as I need. I will probably come back and go through it again at some point and by then it will be another mind-blown situation

Hmm. It looks like I forgot a pointer to the actual tutorial. I wasn't talking about vimtutor, which only covers very basic topics, but about the much more extensive user manual: :help user-manual.

I use neovim. I thought you were referring to the :Tutor command which starts the interactive tutorial.
Post reply on HN