It's not about performance.
dice@molly:~/temp % cat while_subshell.sh
#!/bin/sh
count=0
cat multiline.txt |
while read line; do
count=$((count+1))
done
echo Number of lines: $count
dice@molly:~/temp % cat while_nosubshell.sh...
I'd have to time it, and keep in mind that it's not a particular apples to apples comparison. It seems to get to the point where I've got the BSD loader screen in a couple seconds and the longest part of the boot process is when I have to tell...
And this is a better way:
while read ip; do
{...}
done < $IPFILE
This doesn't use a subshell.
This does:
cat $IPFILE |
while read ip; do
{...}
done
The subshell is going to pose a problem if you want to count the number of lines for...
Feel free to add the tools of your choice to my server, making it better than I could ever do on my own.
Your experience will also guide others who read this, not just me.
I did not want to demand SirDice , but ask kindly to do me a favour. I'm...
Big fan of McIlroy. I've probably posted this before cause it's one of me faves. I beg for forbearance for the old man repeating himself:
https://leancrew.com/all-this/2011/12/more-shell-less-egg/
You use `tee /dev/fd...` to copy to a different file descriptor, which you open in an outer shell context and redirect as you wish.
My misc/cstream utility also has an option to copy stdin to fd 3.
Let me know if you want concrete examples.
Everybody has such a problem when they are using nuclear power. Only, they pretend it's not their problem but their grand^x childrens "benefit". Funny, yes? Storage of nuclear waste is a serious problem. The current search for a place is plagued...
Well, as per AlfredoLlaquet's post, in fact it was Meta who spent billions lobbying for this, in order to shift the entire problem to the OS level.
It really does seem to be on the level of the typical corporate skullduggey which many are in...
The problem is, the character it is morphing into is the kind of character you want to see behind locked doors and kept away from the public to protect everyone else.
If it's a VM: tmux, vim, fzy, zsh, zoxide, ncdu, curl, tree, rsync
If it's real hardware I add: dmidecode, lsblk
tio (a minicom-like) is only installed on the client: my laptop.
PS:
Glad to have you back! It's nice to see that some older users...
Feel free to add the tools of your choice to my server, making it better than I could ever do on my own.
Your experience will also guide others who read this, not just me.
I did not want to demand SirDice , but ask kindly to do me a favour. I'm...
I don't have a smartphone, thus I'm not familiar with and don't know which tools are reliable & good:
Network interface of the box is broken, but it has bluetooth and/or wifi/wlan and/or USB.
You have your smartphone, either with bluetooth or...
No. I am not offended by what you said. I do see the hobbyists online say they are looking for or got a job as a coder. Often graduates of coding camps. That tells me their skill level.
Ok, then please add somewhere (i.e. priority is low to medium) in your todo list: increase that limit to a more reasonable # (20?). Until then, if I could be able to edit existing entries, too, I can replace the entry with the least # of votes...
I just came across a great feature of IOCAGE which I'd like to share:
https://iocage.readthedocs.io/en/latest/advanced-use.html
Automatic Package Installation
Packages can be installed automatically at creation time!
Use the [-p | –pkglist]...
A minimal system has nothing besides the base. But depending on how I need to manage those systems I might "pre-install" puppet or python (for ansible). Nothing else, the system would get everything that's needed through ansible or puppet and...
You use `tee /dev/fd...` to copy to a different file descriptor, which you open in an outer shell context and redirect as you wish.
My misc/cstream utility also has an option to copy stdin to fd 3.
Let me know if you want concrete examples.
I will for sure install that into a jail on my server, but I'm sorry, this is the 1st proposition that will not make it into the list. Hopefully I'll stay disciplined and keep the base system very minimalistic. Only a few exceptions will break...
Thx a lot. But I can't add these to the list; when I click "edit", I neither can change/edit the entries of the list, nor can I add more choices. Can you kindly help to fix that? Or could this be a bug on the client side, i.e. my browser?
What would that look like in a command? I think it's practically almost impossible to use. The scenario where you don't want to redirect the same output to 2 different places and continue independently in 2 directions...
It has to be 1 line...
A minimal system has nothing besides the base. But depending on how I need to manage those systems I might "pre-install" puppet or python (for ansible). Nothing else, the system would get everything that's needed through ansible or puppet and...
I'm collecting a list of outstanding utterly useful tools from ports to be installed into the minimum base (i.e. root filesystem) of a general purpose server. These tools should be
rock solid & reliable
provide real benefit
add your own...
The problem is, the character it is morphing into is the kind of character you want to see behind locked doors and kept away from the public to protect everyone else.
Let's keep an eye on that. At worst, Haiku seems to have good RiscV support. I was on the edge buying a RiscV machine for it, seeing it run on 64 cores would be nice. But FreeBSD? What's the Chip in it, I never heard of it before. And they have...
As a professor of me once said after a presentation : "Today we have heard a lot of new things and a lot of good things", which meant the new stuff wasn't good and the good stuff wasn't new.
And in the summer when the rivers run dry france buys...
Absolutely no advice: I'm not expert; I started using Bastille only because it seems good enough; I really liked NixOS and Guix way to configure a system, but there is nothing of similar on FreeBSD; I'm not a professional system administrator, so...
Recently I read s/wh (XigmaNAS Forum IIRC) that cbsd is even better than bastille, but I did not try it myself yet. Bastille seems to be what many use, though.
cbsd-15.0.0 Yet another FreeBSD Jail, XEN and Bhyve Management...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.