this post was submitted on 03 May 2024
109 points (99.1% liked)

Linux

48461 readers
423 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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Let me know your feedback, especially if you haven't learned awk yet!

top 5 comments
sorted by: hot top controversial new old
[–] Frederic@beehaw.org 12 points 7 months ago

At an old place of work, someone wrote an awk script that parsed strings using regex from a CSV file, and it generated JavaScript code automatically. It was ~5000 lines of awk script, it was beautiful. I understood it after a couple of weeks, I was in charge of maintaining it, super interesting.

[–] boredsquirrel@slrpnk.net 8 points 7 months ago (1 children)

Really cool, use it sometimes but never understood it really. It is so useful to get strings from whatever file you want

[–] ewenak@jlai.lu 1 points 7 months ago

Yeah, really, I only know awk '{ print $SOME_COLUMN_NUMBER }', nothing else.

[–] ericjmorey@programming.dev 6 points 7 months ago

It's strange to me people refer to the awk command rather than the AWK language.

[–] pingveno@lemmy.ml 5 points 7 months ago* (last edited 7 months ago)

pipx is also a good way to install a virtualenv and link up any executables that the package exposes.

Edit: So installation would be:

pipx install awktutorial

And it would automatically make the executable available to the user as long as pipx's bin directory is in the user's PATH.