skaarl

joined 2 weeks ago
 

As the title says, I just started with linux mint and am falling in love with bash scripts ๐Ÿ˜ Actually I'm not sure if it's considered a script, but I want to delete the last 2 files in all subfolders in a folder. So far I've (after great effort) got the terminal to list the files, but I want to delete them. Here is how I get them listed:

for f in *; do ls $f | tail -n 2; done

All their names come satisfyingly up in the terminal. Now what? I tried adding | xargs rm but that didn't delete them. I also tried something with find command but that didn't work either. Some folders have 3 items, so I want to delete #2 and 3. Some folders have 15 items so I want to delete #14 and 15. Folders are arranged by name, so it's always the last 2 that I want to delete.

It's frustrating to be sooooo clooooose, but also very fun. Any help is appreciated!

[โ€“] skaarl@feddit.nl 2 points 1 week ago

Wow, good points, thank you. The connectivity checks look like a PIA but in this case (not being a person of interest) it seems reasonable to just keep the phone on LOS.

[โ€“] skaarl@feddit.nl 3 points 1 week ago

These guys have only spoiled rich kid sore loser vibes. And cowards.

https://xcancel.com/QudsNen/status/1881685712837468572

[โ€“] skaarl@feddit.nl 4 points 1 week ago

A flare up, perhaps

 

* wages increase with productivity

Original image credit

[โ€“] skaarl@feddit.nl 1 points 1 week ago (1 children)

Hey thanks for the info. Are you saying that just standard LineageOS without gapps or MicroG will be unable to have a functioning OsmAnd (for example)? I remember a few years ago you had to install Mozilla location services seperately from F-Droid to get OsmAnd to work without Google stuff, but I've personally been out of the loop for a while.

[โ€“] skaarl@feddit.nl 2 points 1 week ago

Thanks for the info โค๏ธ

[โ€“] skaarl@feddit.nl 1 points 1 week ago

Looks like you're right about that, thanks.

[โ€“] skaarl@feddit.nl 1 points 1 week ago (2 children)

Thanks, and is there one DNS provider that is better than the others in terms of privacy and degoogling?

 

I have to update a phone that currently has LOS, and degoogle it at the same time. If I just upgrade to the latest version (by flashing) and not install mind the gapps, is it basically a degoogled phone? It seems that installing /e/ over the current LOS would require me to flash stock rom first, which takes more time. The current LOS version on the phone was just 1 or 2 iterations below the latest version, 20 or 21 I don't remember.

TIA