moreutils
joeyh.name
joeyh.name
And no, I don't want to set an environment variable on a fleet of machines to suppress behavior which shouldn't be enabled by default to begin with! <cough> .NET telemetry </cough>
A real shame, because it is an otherwise useful tool IMHO.
• Run `touch ~/.parallel/will-cite`.
• Pass the flag `--will-cite`.
Still annoying, although it's easy enough to disable.
Unless the programs are setuid, is that a real problem? I mean, anyone who can call one of these utilities with some arguments can also call "sh -c ...", no?
Your parachute may be very reliable but if you keep jumping off planes you'll eventually die.
Quite a few moreutils involve unbounded buffering of input, I wonder if they were left out of Unix originally due to memory limits.
This was something of the inspiration for wf as well. https://github.com/jarcane/wf
As an aside, my utility is also written in Rust; nice to see more of these small programs written in Rust.
[1] https://lobste.rs/s/fdzyio/how_should_i_make_this_small_prog...
% sed -i -e "s/root/toor/" -e "/joey/d" /etc/passwd ls -l | awk '{ print $9 }'
vs ls -l | ruby -nae 'puts $F[8]'How does this differ than just redirecting to a file in the shell?
echo "hello world" >> dummyfile
cat dummyfile | sed 's/hello/goodbye/' > dummyfile
dummyfile will be blank afterwardsif you do:
cat dummyfile | sed 's/hello/goodbye/' | sponge dummyfile
It'll work as you'd expect (or at least as I'd expect). Otherwise `> dummyfile` will truncate dummyfile before it's read and inputed into sed.AKA
sed -i 's/hello/goodby/' dummyfile
Does the '>' operator blanks the file first, before the read happens?
This isn't the issue.
https://rentes.github.io/unix/utilities/2015/07/27/moreutils...
combine file1 [OPERATION] file2
Where [OPERATION] is one of [and, not, or, xor]. It allows you to quickly pull out interesting data from your files (the input files don't need to be sorted).