kittenroar

joined 2 years ago
[–] [email protected] 2 points 2 days ago

Very nice; I will use this. Thanks!

[–] [email protected] 2 points 2 days ago* (last edited 2 days ago) (2 children)

Here's the code:

#!/bin/bash
cmd=$@
if echo $cmd | grep '/$'
then
    xargs -rd '\n' -I {} $cmd{}
else
    xargs -rd '\n' -I {} $cmd {}
fi

Usage is like:

ls *zip | iter shasum

or

ls *zip | iter shasum ../zipfile_archive/

The second one would get the shasum of zip files that have the same name as ones in the cwd

This assumes, of course, that the input files have sane names, ie, no spaces, etc

[–] [email protected] 3 points 6 days ago (4 children)

Great minds, lol. I have almost the exact same command set up as a little script. Mine has an extra modification for my use case, and I named mine iter, but foreach is a good name for it too.

[–] [email protected] 8 points 3 weeks ago

tmsu is pretty cool - it creates a little db and uses that to track tags on your files without ever touching them. It also has it's own little tag based filesystem.

[–] [email protected] 5 points 1 month ago* (last edited 1 month ago)

The Atlantic published an article last year saying the murder of Gazan children should not be considered murder because it was legal under Israeli law. They are shameless imperial Zionist pieces of shit, and that article earned them a place in my boycott list.

[–] [email protected] 2 points 1 month ago

Mine ravencoin instead.

[–] [email protected] 1 points 1 month ago

Some other commands you might like:

Ctrl+c

Ctrl+z

Bg

Jobs

Ctrl+u

Ctrl+w

Ctrl+l

[–] [email protected] 1 points 1 month ago (1 children)

That was bad advice then -- the right already have a party, and it isn't the Democratic one.

[–] [email protected] 1 points 1 month ago

Right winger really. She got endorsements from the Cheney's. She had nothing to say about Gaza, BLM, East Palestine Ohio, the housing crisis, ir anything else that mattered.

[–] [email protected] 1 points 1 month ago (1 children)

Thunderbird, and probably betterbird, is too bloated for my taste.

[–] [email protected] 1 points 1 month ago

The egregiously exploitative flavor of capitalism that exists today is a relatively recent development. I don't think it's intrinsic to humanity at all; humanity has been communist for most of our existence. Also, capitalism has a specific meaning; it means the means of production can be privately owned, and that owner gets to decide how many breadcrumbs to give to the workers.

[–] [email protected] 4 points 1 month ago (1 children)

I am atheist, which is an absence of religion. I do however have a deep appreciation for the arts and sciences, and I have a vision for what the world could and should be like. We don't have to have homeless people. We don't have to have hungry people or poverty. The existence of this suffering is a choice that the capitalists make in the pursuit of power.

 

This is a proposal for how we could potentially bypass the two-party system and set up a government that actually represents the will of the people.

 

Researchers often use the genitalia of insects to differentiate species, since they are a reliable signature of a species uniqueness. A newly discovered beetle has been found to have genitalia that look remarkably similar to a bottle opener.

22
The sun is blue-green (eclipse2017.nasa.gov)
view more: next ›