In a script, if you open a file descriptor like this: eval exec 3>&1
and redirect output from certain commands to it like this: echo blub >&3
then you can redirect only that certain output to a different file if needed when calling the script. By default all goes to stdout, but when called like this: ./script 3>>file1 >>file2
then you can check the separated output in file1 and the rest of stdout in file2.
Bash Tip
Entry created on 2022-11-30
Authors: steeph (338)
Categories: Bash (30)
File Descriptors (1)
Output Redirection (1)
Software (50)
Languages used: en (189)
Entry created on 2022-11-29
Authors: steeph (338)
Categories: Conversation (2)
Jokes (2)
Silly (32)
Languages used: en (189)
Where were you born?
Hmm, I'm not sure. That was such a long time ago. I can't remember. Where were you born?
In a hospital.
Huh, just like me.
Entry created on 2022-11-27
Authors: steeph (338)
Categories: Bash (30)
Linux (34)
Languages used: en (189)
When I started to really use Linux I followed the common suggestion to read all the relevant man pages. I skipped a lot. But I still sometimes feel like it is useful that I've read about a thing or another before. I attempted to read the bash manual back then, but it was just too much at once.
Many years later I started to use more of my shell's potential, which was still bash. Now I'm used to write scripts and have written a relatively large application in bash, but had never read the entire bash manual.
Until this year. I've read the entire bash man page. And yes, I did learn useful new things.
Entry created on 2022-11-27
Authors: steeph (338)
Categories: Linux (34)
Talk (2)
Video (1)
Languages used: en (189)
I like how "Linux on the desktop" is still the same running joke nowadays even though the vision has lost it's relevance as a goal.
Linux on mobile is nowaday's "Linux on the desktop". And don't make the mistake to think that Android is Linux and so Linux has won.
Here's a talk from this year about Linux Mobile: "Is there hope for Linux on smartphones?" by Guido Günther
Entry created on 2022-11-25
Authors: steeph (338)
Categories: 2022 (4)
Thoughts (72)
Toothbrush (1)
Languages used: en (189)
2022 was the year in which I've learned to accept that a toothbrush costs more than a few cents and that I have to start using a new one more often than once or twice a year. It's not actually that much money that goes into toothbrushes compared to other things adult me has to pay for.
Entry created on 2022-11-13 (edited 2022-11-21)
Authors: steeph (338)
Categories: Food (2)
Silly (32)
Thoughts (72)
Languages used: en (189)
Write Noodles belong in the osophagus, not the trachea.
100 times and bring me the sheets when you're done! No talking or leaving the room until then. And write legible, or you can start over!
Entry created on 2022-10-06
Authors: steeph (338)
Categories: Memes (3)
Pictures (59)
Ukraine (1)
Languages used: de (79)
Als Merkel neulich "Ukarine" versprach, musste ich an Früchte denken.
File Attachments (1 file)
Entry created on 2022-11-12
Authors: steeph (338)
Categories: Language (7)
Learning (2)
Thoughts (72)
Languages used: en (189)
How can you explain the meaning of the word 'remember' whichout using that word in a definition? How do children learn what that word means (as well as other non-tangible terms)? I suppose only non-children regard it as incredible how easily those who still enjoy their high neural plasticity learn (e.g. languages).