pingveno, (edited )

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.

ericjmorey,
@ericjmorey@programming.dev avatar

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

Frederic,

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,

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

ewenak,

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

aniki,

I’m not an awk noob but I’ll definitely play around with this later and let you know what I think! There’s always more awk to learn.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • tacticalgear
  • DreamBathrooms
  • ethstaker
  • magazineikmin
  • vwfavf
  • GTA5RPClips
  • Youngstown
  • khanakhh
  • slotface
  • rosin
  • everett
  • mdbf
  • kavyap
  • ngwrru68w68
  • megavids
  • InstantRegret
  • cubers
  • cisconetworking
  • Durango
  • thenastyranch
  • osvaldo12
  • tester
  • modclub
  • normalnudes
  • anitta
  • Leos
  • provamag3
  • JUstTest
  • All magazines