I guess my dad got one of those cars that gives you a grade based on how efficiently you’re driving.
But I keep getting a D grade and I didn’t need this kind of judgement from a car.
It’s okay I changed to a Pass/No Pass right when I got to where I was going.
I just recently learned that
wc -lThe command-line program that counts characters, words, and lines.
wc -l counts lines. technically counts newlines.
So if your document doesn’t end in a newline, it might not be counting the last line.
echo -n prints the content without appending a newline.
$ echo -n "1 > 2 > 3" | wc -l 2
This behavior is intentional! POSIXPOSIX.1-2017 3.206 is very clear what a line means!
A sequence of zero or more non-<newline> characters plus a terminating <newline> character.
Write to the standard output the number of <newline> characters in each input file.
This makes sense!
It is also Awful! Every script I’ve ever written with
wc -l is possibly wrong.
He spoke lazily, and without care to his languidge
Yeah you know I’m on Twitch. I’m a full time steamer. Mostly vegetables, but sometimes eggs and buns too. Heck, got a wrinkly shirt?
Videogames? That sounds a like a bad idea. Water and electronics don’t mix.