linux

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

filister, in Is anyone using awk?

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

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.

raven, in Dual Booting: How in god's name?!

From Pop_OS, if you launch the “disks” program, can you see the other drive there, and the NTFS windows partition on it?

blakeus12,
@blakeus12@hexbear.net avatar

yes, there’s an NTFS partition. Heres a screenshot:

https://hexbear.net/pictrs/image/295faa75-5a89-42cb-ab15-254fd1572237.png

raven,

Well it’s there at least. Hmm. I don’t know a whole lot about windows but you can certainly get back to those boot options you saw before by pressing shift while booting, which will open the GRUB options. I’d give the windows boot manager another shot from there.

If that ends up working you can change the grub settings to wait for input instead of automatically booting pop. If that doesn’t work then something is probably wrong with windows and I would just try reinstalling since it sounds like you don’t have anything on there yet.

blakeus12,
@blakeus12@hexbear.net avatar

thank you i will try.

raven,
blakeus12,
@blakeus12@hexbear.net avatar

at this point i am considering uninstalling Pop and getting win10 first because linux actually has sensible ways to dual boot even on the same drive. that’s probably what i’ll have to do.

wesker,
@wesker@lemmy.sdf.org avatar

I swore off dual booting a couple years ago, but I do recall the order in which I installes the OS’ did matter. So it’s worth a shot.

blakeus12,
@blakeus12@hexbear.net avatar

i have done that successfully at the cost of my sleep schedule lmao.

blakeus12,
@blakeus12@hexbear.net avatar

do i need to install the grub bootloader? because no matter what i do holding shift doesn’t do anything. i am on windows reinstall number 3 now

raven,

Apparently I’m wrong and Pop_Os uses systemD-boot not GRUB, which is surprising to me because unless things have changed I’ve always thought of systemD-boot as being underpowered for a lot of use cases.

If I’m reading the wiki correctly here, I think it’s saying systemd-boot cannot launch windows because it’s on another drive? wiki.archlinux.org/title/systemd-boot#Boot_from_a…

But on the other hand it’s interesting that it’s able to “see” the windows partition so I might be completely wrong.

blakeus12,
@blakeus12@hexbear.net avatar

this is indeed, pretty damn weird. I’m going to go with uninstalling pop os, and getting windows first on the smaller drive, then getting either KDE Neon or Linux Mint on the bigger one. kinda sucks, i wish i couldve just installed but it doesn’t seem like there is anything i can do. thank you so much for the help, comrade. rat-salute

F04118F,

FYI: Pop!_OS 22.04 uses systemd-boot, not GRUB.

I use rEFInd, which auto-detects my Windows boot partition. Though I had the Windows installation before the Linux one.

Systemd-boot should be able to detect a bootable Windows too. I don’t remember the specifics. It works out of the box on my laptop. Google “systemd Windows boot”.

Alternatively, maybe something went wrong with the Windows install and you nees to do the Windows repair USB stick thingy. Do you have a Windows recovery partition?

Atemu,
@Atemu@lemmy.ml avatar

Ah I think Windows does this “helpful” thing where it installs its bootloader into the ESP of any drive if it’s already present rather than the drive you explicitly told it to install onto.

You didn’t have anything in it yet, right? Unplug all other drives and then re-install Windows onto the drive. It should work as expected after that.

IIRC Pop!_OS sets the systemd-boot timeout super short; you have to hold a key after the firmware is done or something to get to it reliably or simply increase the timeout (1s is enough, I have it set to that on my systems). systemd-boot should give you the option to boot any windows installation though, it can auto-detect them.

blakeus12,
@blakeus12@hexbear.net avatar

thank you for the suggestion! i ended up uninstalling pop and windows then doing windows first but i appreciate the suggestion

possiblylinux127,

Try updating grub. If windows pops up as well as pop os you are golden.

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.

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.

eestileib, in Is anyone using awk?

Perl kinda killed awk and sed.

Then python kinda killed perl.

AnUnusualRelic,
@AnUnusualRelic@lemmy.world avatar

I used awk until perl, then there was no going back.

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

starman, in Is anyone using awk?
@starman@programming.dev avatar

No, I don’t need it because of jc and nushell

bizdelnick, (edited ) in Is anyone using awk?

Yes, but for a very specific case. I used to write highly portable scripts that could be executed in different environments (various linux distros, including minimal containers, freebsd and even solaris 10). I couldn’t use bash, perl, python and even gawk. Only POSIX shell (I always tested my scripts with dash and ksh93, for solaris 10 compatibility - with its jsh), portable awk (tested with original-awk, gawk and mawk) and portable sed (better forget it if you need to support solaris).

Before that I didn’t understand why should I need awk if I know perl. And awk really sucks. Once I had to replace a perl one-liner with an awk script of ~30 lines for portability.

P.S. I never use awk just for print $1 as many do. It’s an overkill.

bionicjoey,

P.S. I never use awk just for print $1 as many do. It’s an overkill.

cut is better for this use-case IMO. Awk is good for when cut won’t cut it.

Mikelius, in Gentoo goes Binary (packages)

Been using Gentoo on my server for over a decade now and probably won’t ever leave the compiling front, especially with a 12-core/24-thread CPU making it go as quick as regular binary updates on my mint laptop… But that being said, in happy to see them considering to do this. It’ll bring in some folks who are afraid of (or just dislike) compiling everything from source. I think the biggest packages that’d benefit from this are definitely the browsers and desktop environments.

upt, in Is anyone using awk?

No, but I heavily use perl still… I feel like you can’t really call yourself a Linux person without knowing perl and python both. Knowing awk can’t hurt though.

sping,

Really? I disliked Perl for 3 decades on unix and Linux and I’ve never felt like I have been held back by not knowing or using it. I don’t remember the last time I saw a Perl script, let alone needed to understand one.

chitak166, in What is the point of dbus?

I’m a firm believer that the vast majority of things we needed for software were implemented by the 2000s.

Usually, people who don’t understand what they’re doing will overcomplicate things to cover-up their misunderstandings. I think choosing a technology before you have a use-case is one of these examples.

vsis,
@vsis@feddit.cl avatar

Those who don’t understand Unix are condemned to reinvent it, poorly. ~HS

kariboka,

Hichard Stallman?

chitak166, (edited ) in Experience with KDE on Fedora?

I’d recommend Mint or Manjaro for family computers.

Probably Mint, just because Pamac still has issues.

Fedora is a bad choice because you’re stuck in the dnf ecosystem with no real benefit.

I’m a firm believer that the only value in Fedora is for Red Hat. Their shills are the ones who promote it over more practical options.

fschaupp,
@fschaupp@lemmy.ml avatar

In case you really want/need some more modern drivers/software,… Nobara is also recommendable stable.

sxan, in Is anyone using awk?
@sxan@midwest.social avatar

Nearly every day. There was a time when I’d reach for Ruby, but in the end, the stability, ubiquity, and portability of the traditional Unix tools - among whom awk is counted - turned out to be more useful. I mainly underuse its power, though; it serves as a column aggregator or re-arranger, for the most part.

OsrsNeedsF2P, in Linux Boomers

“I wrote a 30 paragraph article using only 60 words”

JaneTheMotherfucker,

Let me guess… you use XFCE/icewm/mate/cde/windowmaker/enlightenment/someoldshit?

vzq,

This is the contempt I’m talking about.

The problem is not GP’s window manager/desktop environment. It’s just that you fundamentally despise your readers.

JaneTheMotherfucker,

Nah, I just treat them like equals :)

rottingleaf,

Which is the same as “despise”

MrBubbles96, (edited )

So basically, “they’re trashing KDE, Gnome, SystemD, etc, so I’m gonna trash XFCE/MATE/GRUB/anything that isn’t the latest bleeding edge stuff?”

Cuz that’s what i get outta that whole, article…that and that you really, really like to swear.

JaneTheMotherfucker,

Pretty much and a lot of people agree with me. It’s the boomers who get triggered.

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