Tag Info

New answers tagged

0

I don't have the 50 reputation privilege to comment on the above answer https://unix.stackexchange.com/a/104008/125690, so just as a comment to Ole Tange's response: If you're using a non-bash shell you'll need to also export SHELL=/bin/bash before running parallel otherwise you'll get an error like: fish: Unknown command 'myfunc arg' fish: myfunc arg


0

You need to use a trick to circumvent automake's policing. See https://www.gnu.org/software/automake/manual/html_node/Uniform.html: This feature can also be used to override the sanity checks Automake performs to diagnose suspicious directory/primary couples (in the unlikely case these checks are undesirable, and you really know what you’re doing). For ...


0

In this particular case - sorted input, so all con... words are listed before pro... words - you could use awk to store the lines matching ^con in an array and when you reach the lines matching ^pro, replace pro with con and print if the result is in array: awk '/^con/{arr[$0]=$0}; /^pro/{c=gensub(/pro/, "con", 1) if (c in arr) print c, $0}' ...


1

From my earlier comment to the question itself: egrep '^(pro|con).* /usr/share/dict/words | sed -nE 's/^(pro|con)(.*)/\2/p' | sort | uniq -d will give you a list of all the word-bases that have both a pro and con prefix: The initial egrep grabs all the words with pro and con prefixes. We then use sed to strip off pro and con from the beginning of each ...


0

This will print out the words without the pro|con prefix: grep '^\(pro\|con\)' /usr/share/dict/words | cut -c 4- | sort | uniq -c | awk '$1 == 2 {print $2}'


0

Sample task task(){ sleep 0.5; echo "$1"; } Sequential runs for thing in a b c d e f g; do task "$thing" done Parallel runs for thing in a b c d e f g; do task "$thing" & done Parallel runs in N-process batches N=4 ( for thing in a b c d e f g; do ((i=i%N)); ((i++==0)) && wait task "$thing" & done )


2

for stuff in things do sem -j+0 ( something with stuff ) done sem --wait This will use semaphores, parallelizing as many iterations as the number of available cores (-j +0 means you will parallelize N+0 jobs, where N is the number of available cores). sem --wait tells to wait until all the iterations in the for loop have terminated execution before ...


0

Gluglug sells laptops with the microcode-free free software LibreBoot BIOS replacement. However not every firmware has been replaced. (The embedded controller is still in place.)


2

I believe all you need to do is: Add the compiler binaries to your path. export $PATH=/home/tester/Misc/gnuarm/install/bin:$PATH Run configure in the Dropbear source directory with the correct options for cross-compiling. ./configure --host=arm-none-eabi Continue compilation as per the INSTALL guide. Note: If you do have any problems caused by the ...


1

To install the build-dependencies: apt-get build-dep freedink That will ensure all the files required to build Freedink are available, but with SDL 1.2 only. To use SDL2: apt-get install libsdl2-dev libsdl2-image-dev libsdl-ttf2.0-dev libsdl2-mixer-dev If you just want to be able to play Freedink, it's in Debian already: apt-get install freedink If ...



Top 50 recent answers are included