I just looked up the man page, and actually head -n -2
means “everything up to but not including the last two lines”, so this should always leave two files remaining.
I just looked up the man page, and actually head -n -2
means “everything up to but not including the last two lines”, so this should always leave two files remaining.
Ah! This is a shell pipe! It’s composing several smaller commands together, cool stuff.
ls -1
is the grep-friendly version of ls, it prints one entry per line, like a shopping list.
head
takes a set number of entries from the head of a list, in this case 2 items. negative two, meaning “all but the last two.”
xargs
takes the incoming pipe and converts it into extra arguments, in this case applying those arguments to rm
.
So, combined, this says “list all the .dump files, pick the first two, all but the last two, and delete them.” Presumably the first are the oldest ones and the last are the newest, if the .dump files are named chronologically.
Like many open source games, it has that distinctly ‘alpha’ feel to it right now, but I do enjoy NodeCore on occasion. It’s a zen minimalist block game with a unique diagetic crafting system. Instead of a traditional “recipe book” or “crafting grid”, you produce new materials through in-world transformations. For instance, to make glass, you have to surround sand with fire, and to control fire, you basically want to build a deliberately-shaped dirt or stone pit… the whole thing feels a little like minecraft and a little like a sand physics sim or cellular automata.
I think part of the problem is just that there are a lot more good games that people know about! Unfortunately one of the tradeoffs for all the riches of heaven is that it’s a lot harder to cover them all.
I hope it gets a PC port. I’m done with Switch exclusives.
I don’t mind waiting a bit. If the system works, the users will come eventually.
I mean, there’s Stackoverflow, and Steamcommunity. It can be done. I’d just like to see federation tackle it.
Right, which defeats the purpose of the “fediverse” imo.
this is my current solution; I use Obsidian to manage my notes and I sync the folder with Syncthing. I still use Google Keep though for its whiteboard tool; is there a better app for that?
If I were him I’d stand by that defense. It’s a carefully worded and sane defense. He’s not defending child abuse, he’s saying, extremely clearly and plainly, that possession of evidence is not the same as committing abuse, and that the law shouldn’t use possession as a scapegoat. Which, given that every attempt to censor the internet in the last 10 years has started with “protect the children”, I’d say he was trying to cut that tactic off at the head.
Hear hear! I thought I didn’t like the fediverse because Mastodon did such an awful job selling it to me. “Oh, I can’t view other instances’ local timelines without making accounts on them? What’s even the point of federation then?” But on Lemmy you can easily browse communities outside your own instance. So it’s not the fediverse’s fault, Mastodon just doesn’t have a clear audience.
And yeah, I can see how a lot of Mastodon’s features are “privacy-focused”, but I think it does TOO good a job, it’s so private that you can’t find anything!
I agree in theory, but in practice, when Google dropped RSS and XMPP support it took most of my friends with it, which is what started this mess in the first place. I’m actually not a fan of mastodon; feels too ambitious to start a new protocol without a killer app. RSS and XMPP are extensible protocols and I really just want modern support for those.
Won’t this delete the two newest files, as opposed to everything except the two newest files?