linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

allywilson, in Is anyone using awk?

I don’t tend to use awk in scripts as I do tend to do them in Python, but I do use awk on almost daily basis in one-liners.

Probably the most common thing for me is so I can read a config file without annoying comments and big line spaces.

grep -v “^#” krb5.conf | awk NF

hersh, in Is anyone using awk?

All the time. Not always by choice!

A lot of my work involves writing scripts for systems I do not control, using as light a touch as is realistically possible. I know for a fact Python is NOT installed on many of my targets, and it doesn’t make sense to push out a whole Python environment of my own for something as trivial as string manipulation.

awk is super powerful, but IMHO not powerful enough to justify its complexity, relative to other languages. If you have the freedom to use Python, then I suggest using that for anything advanced. Python skills will serve you better in a wider variety of use cases.

saigot, (edited ) in Is linux good for someone tech illererate.

Depends on just how illiterate imo.

Here’s a good usecase:

My mum is completely tech illiterate, I have to teach her how to every task individually, and she has to write them down and follow them step my step. Tasks like emailing a document are a challenge. Linux is great for her. She isn’t used to windows anyway, and Linux makes it harder for her to accidentally make damaging changes, collect viruses or experience unexpected ui updates. It has much less maintaince, so it’s a lot less work for me to manage the system.

Here’s a bad usecase:

You are a user who can do the basics of using a website, install new apps, use usb drives etc etc. You are used to windows ui like where to find apps, where the close button is etc. You dont have a tech friend set up your stuff but if something goes wrong you are boned. This isn’t a good use unless you are interesting in becoming more tech literate (its easier to learn, if you can google your problems).

SnokenKeekaGuard,
@SnokenKeekaGuard@lemmy.dbzer0.com avatar

Thanks for the advice

j4k3, in Is anyone using awk?
@j4k3@lemmy.world avatar

With embedded like OpenWRT on a router where you only have busybox/ash shell, awk is your primary expansions tool.

SpaceNoodle, in Is anyone using awk?

I haven’t found a use for awk that couldn’t be accomplished with bash builtins or other common commands.

filister, in Is anyone using awk?

Just use awk and when needed ask ChatGPT for the syntax of the command

FaceButt9000, in Is anyone using awk?

I use it multiple times a day. I only know basic usage, but it’s super useful as part of an awk/grep/sort/uniq pipeline, basically just extracting a field to work on.

Reddfugee42, in Could 2024 be the year of the diagonal linux desktop?

Thank God for betteridge’s law of headlines

FuckBigTech347, in I'm looking for a command that is similar to cpupower, but for gpu (or even both -- gpupower?systempower?)
@FuckBigTech347@lemmygrad.ml avatar
S410, in recommendations for lightweight window managers for an old netbook
@S410@kbin.social avatar

Almost everything that's not Gnome can be considered lightweight, to be honest.

Cwilliams,

Maybe except KDE

clmbmb,

No. S/He’s right. Anything (including KDE) is better than gnome.

RizzRustbolt, in Could 2024 be the year of the diagonal linux desktop?

I want to stack 3 like that and be all kewl cyb3r-h4ckz0rz.

picandocodigo, in Is anyone using awk?
@picandocodigo@lemmy.world avatar

I learned awk when I was studying and I still use it every now and then. It’s one of those tools that come in really handy at times. I work in Ruby, but there’s still times when scripting or just wanting to process some text when I end up using awk because it makes sense.

FigMcLargeHuge, in Is anyone using awk?

I use awk constantly at work. Very useful in my opinion, and really powerful if you dig into it.

GenBlob, in Gentoo goes Binary (packages)

This is what Gentoo needed. I’ve been using it for a long time and love it as it is but sometimes when there’s a bunch of slot conflicts or a compile error it makes me wish I just dealt with binaries instead. Now that we have the best of both worlds, it will make Gentoo appeal to a wider userbase and make it less painful to use on older hardware.

TrivialBetaState, in Does Wayland really break everything? (Nate Graham's OG post ref'd in the Phoronix article)

I have been using wayland on kde the last two years on Debian and MX Linux with zero issues. My general usa includes coding, music production, Libre office and web browsing. So, no much gaming, if that is your concern.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #