this post was submitted on 30 May 2024
204 points (99.0% liked)
Linux
48220 readers
728 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I swear whenever I see sed/awk commands, it looks like I'm about to summon the demon beast.
Is it regex or sed/awk syntax (or both) that gives you trouble?
I had similar reaction and didn't even try to learn them for years - then I caught the stackoverflow craze of answering CLI questions (and learning from others).
I am pretty okay with regex. Enough that I can do what I want.
sed/awk I've used on occasion, usually sed to change something in a pipeline.
I still feel like I'm casting a demon.
sed harbors no demon beasts, in my experience.
On the other hand, by default using
sed -i
is where the demons come in.No, sed, NOT in place. Not the first time. Show me what you want to do based on the instructions I gave you, and then we'll talk about letting you play with the real data.
Or at least the 3rd column of demon beasts (whose names then get consistently capitalized) which then get sorted and any duplicates sent back.