News for hackers. Stuff that matters.
Re:Linux Text Manipulation by bikingbismuth on Thursday March 28, 2024 @12:28PM (#39853773)
I enjoy reading things like this. It’s posts like this that have helped me build my command line text processing skills over the years.

If you are early in your career, I suggest you work on these types of skills. It is surprising how often I have found myself on a random box that I needed to parse application logs “by hand”. This happens to me even in fancy, K8-rich environments.

Re:Linux Text Manipulation by JohnMakin on Thursday March 28, 2024 @02:26PM (#39855555)
Some code challenge sites offer all their challenges in bash - I highly recommend working through these if you want to get better at this type of stuff. Some problems are surprisingly simple, others torturously difficult.
Re:Linux Text Manipulation by s3arch on Friday March 29, 2024 @12:45AM (#39860815)
can you suggest few?
Re:Linux Text Manipulation by JohnMakin on Saturday March 30, 2024 @12:37PM (#39876357)
Been a couple of years since I did any competitive problems for shell and cannot recall - however this hackerrank page is how I do interview prep for anything shell related -

https://www.hackerrank.com/domains/shell

Re:Linux Text Manipulation by cassianoleal on Thursday March 28, 2024 @01:09PM (#39854485)
I agree.

Just FYI, Kubernetes is abbreviated to k8s, not k8.

> K8s as an abbreviation results from counting the eight letters between the "K" and the "s".

https://kubernetes.io/docs/concepts/overview/

Re:Linux Text Manipulation by tentacleuno on Thursday March 28, 2024 @01:22PM (#39854683)
This is very similar to "a11y"[0] and "i18n"[1]. The abbreviation of words using this technique has become surprisingly common in the software industry.

[0]: https://www.wordnik.com/words/a11y [1]: https://www.wordnik.com/words/i18n

Re:Linux Text Manipulation by nrabulinski on Thursday March 28, 2024 @02:26PM (#39855549)
Re:Linux Text Manipulation by tentacleuno on Thursday March 28, 2024 @02:55PM (#39855878)
Thank you! I truly do learn something new every day on here.
Re:Linux Text Manipulation by bregma on Thursday March 28, 2024 @03:42PM (#39856422)
Sometimes an n7m?
Re:Linux Text Manipulation by pseingatl on Thursday March 28, 2024 @05:39PM (#39857665)
Better watch out with Arabic speakers, 7 is used for a sound in Arabic we don't have in English.
Re:Linux Text Manipulation by baq on Thursday March 28, 2024 @05:18PM (#39857425)
i18n was a mystery for the longest time. a11y was just dumb for me until I learned what the numbers meant… last year, after what, two decades?

Btw txn is similar, but they didn’t bother with numbers, they just replaced the middle with an x.

Re:Linux Text Manipulation by ASalazarMX on Friday March 29, 2024 @08:40PM (#39870649)
It's been decades and I still don't know what is the original word for "l33t", but I reckon it must be quite large.
Re:Linux Text Manipulation by nikau on Saturday March 30, 2024 @10:09PM (#39880700)
Only the elite know the answer to that
Re:Linux Text Manipulation by FergusArgyll on Thursday March 28, 2024 @05:51PM (#39857791)
a16z andreesen horowitz
Re:Linux Text Manipulation by foresto on Thursday March 28, 2024 @08:29PM (#39859188)
I strongly dislike this practice, because it impedes understanding.

"a11y" is especially bad, since it runs counter to the very thing it is supposed to represent.

I hope the fad passes quickly.

Re:Linux Text Manipulation by samatman on Thursday March 28, 2024 @08:51PM (#39859347)
I'd say the vision impaired are going to understand what "ay-one-one-why" means about as fast as the rest of us. I'm not a fan of the cutesy letter-number jargon either, if you're typing about it in Slack, sure, okay, but it shouldn't escape confinement.

But it's equal-opportunity annoying I reckon: no one knows what the hell `a11y` is about when they first see/hear it, but not in a way that's more onerous for screen reader and braille users than for anyone else.

Re:Linux Text Manipulation by foresto on Thursday March 28, 2024 @10:20PM (#39859923)
I was using the term in the general sense: capable of being understood. Not the narrow sense that refers specifically to vision.
Re:Linux Text Manipulation by samatman on Friday March 29, 2024 @02:02PM (#39867104)
Sure, that's reasonable. Kind of circles back to "a11y" being technical language, which refers to a term of art, "accessibility", which is not identical to the word "accessibility" itself. This is at least part of why it gets used, although the main reason is really that a11y is easy to write and fast to read, while accessibility is neither.
Re:Linux Text Manipulation by reidjs on Thursday March 28, 2024 @01:16PM (#39854586)
Is there something like leetcode for string manipulation exercises like this?
Re:Linux Text Manipulation by keybored on Thursday March 28, 2024 @01:47PM (#39855003)
> If you are early in your career, I suggest you work on these types of skills. It is surprising how often I have found myself on a random box that I needed to parse application logs “by hand”. This happens to me even in fancy, K8-rich environments.

It’s surprising how many times you have to ad hoc parse due to the tools being so poor. It’s endemic.

Re:Linux Text Manipulation by eternityforest on Friday March 29, 2024 @12:32AM (#39860732)
Regex can help you with fairly complicated source code edits too, like changing the order of parameters in some multi language project where there's no automated tool that can just do it.