OK, I read through the xargs documentation, pretty cool!

@vaporeon_ oh wow, posix xargs doesn’t suppurrt using null characters as a sepurrator

@aescling What would be the use-case for null characters as separators? Processing files that have a newline in the name?

@aescling Personally my opinion is that if you put a newline inside a filename, you deserve whatever troubles this causes you... It's just a wrong thing to do, even if it's technically allowed...

But I understand that not everyone may agree with that.

@vaporeon_ @aescling This has happened before by accident as a result of trying to operate on text files/scripts that were saved in windows notepad.

@aescling @vaporeon_ One thing we did was a script that would take every line in a text file and make an empty file named for it
Say the document says:
Super Mario Bros
Luigi's Mansion
Sonic the Hedgehog 2

After the last character of every line it would have a newline characters because bash assumes Linux line endings instead of windows

So you get a file named Super Mario Bros[CR].

@onfy @aescling Hmmm.... cat your-file-list | tr -d '\r' | xargs touch?
(Without testing, give me a few seconds to test this)

@vaporeon_ @aescling I don't remember just what I did. I guess I should've asked you instead of whatever horrible thing it was.

Though it did work in the end if you ignore that it broke FAT.

@onfy @aescling I only learned how to use xargs today, at most a few hours ago, so don't assume I am competent when I am not...

@onfy @aescling You, too, can learn xargs!

In any case, you're still learning Linux right? I think it'd be unfair to call someone incompetent who is still learning. Do you want me to look over your script and review it?

It's just that I have been doing this for so many years that I really ought to know it... And also I specifically want to be good at computers, just like some of y'all want to be good at melee fighting games or whatever, and so it is frustrating when despite my best efforts, I am bad at computers...

Follow

@vaporeon_ @onfy

I think it'd be unfair to call someone incompetent who is still learning.

vaporeon… please take your own advice…

@aescling @onfy I think it'd be wrong to call me "someone who is still learning" after all these years, I really ought to know Linux by now, I'm really not new to it at all

@vaporeon_ @aescling we're all learning, always. give up on learning is like giving up on yourself

@onfy @aescling Where would I even plant a tree? I do not own any land

@aescling @vaporeon_ i have the weird flavour of autism where i understand and use metaphors :blobawkward:

@onfy @aescling Have you ever used a ZX Spectrum? I haven't... It's one of those small home computers, isn't it?

@vaporeon_ @aescling it was extremely unpopular here, so i've never seen one in person

@onfy @vaporeon_ @aescling yeah, I've only played a few Spectrum games on Rare Replay, and even that makes me an outlier. Most people have not heard of it...

@The_T @vaporeon_ @aescling rare's from the uk, that's what those are doing there

the north american version of the speccy was made by timex. nuff said

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.