by vikin9 · 6y ago · 0 comments
# Remove all local branches for which there is no remote
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -DThe merged branches part is missing.
# diff -u <(echo $'one\ntwo') <(echo one)
--- /dev/fd/63 2020-08-13 16:14:44.449379498 +0200
+++ /dev/fd/62 2020-08-13 16:14:44.450379506 +0200
@@ -1,2 +1 @@
one
-two> Process substitution is supported on systems that support named pipes (FIFOs) or the /dev/fd method of naming open files. It takes the form of <(list) or >(list). The process list is run with its input or output connected to a FIFO or some file in /dev/fd. The name of this file is passed as an argument to the current command as the result of the expansion. If the >(list) form is used, writing to the file will provide input for list. If the <(list) form is used, the file passed as an argument should be read to obtain the output of list.