< file.txt grep thing also works.
- 0 Posts
- 6 Comments
Joined 3 years ago
Cake day: November 17th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
What, do you mean to tell me that random chances are not influenced by God? We call it RNGesus for a reason. /s
You moved everything down 3 dirs from root to your working dir.
tgt@programming.devto
Linux@lemmy.ml•I made a plain text Linux cheat sheet as a reference and for beginners.
1·3 years agoAt the end, in redirection,
<<: that’s not how here-documents work. The example gives the impression it will read the given file up until “STOP”, but in reality the shell expects you to keep writing your here-doc until you write “STOP” and then feeds it to the program as if it were all on stdin. I don’t think wc even does anything with the stdin if you give it a filename… Note that variable expansion will happen in here-docs, so it’s a bit different than a simplecat. Also look into here-strings. And process substitution, I find that quite handy.

The code it committed has comments with “old code did this”, “old code did that”, like AI likes to insert. That is not useful info. It’s what version control is for… You can explain why you do a thing, like the AI does at the start, the actual code edited. The assertion it edited is just clutered with irrelevant info now. Is including history like this the usual style for the kernel, seeing that Linus himself signed off on it?