Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 52934

Process substitution a form of inter-process communication that allows the input or output of a command to appear as a file (such as: `<(cmd)` or `>(cmd)`).

-1
votes
I think whatever you've got going on in <(cat HEADER) isn't actually doing what you think it is. Here are the reasons I believe this: luksOpen <device> <name> (old syntax) Opens the LUKS devic …
answered Dec 29 '15 by mikeserv
3
votes
You can do all of that just in sed. command | sed '/\([^ ][^ ]* *\)\{2\}/{h s///;s/^ *//;s/ .*/p g};s/.*foo \(bar\).*/\1/p;d' But as to the other thing, you have tee around the | …
answered Jun 11 '14 by mikeserv
4
votes
You can pretty easily get the return from any subshelled process by echoing its return out over its stdout. The same is true of process substitution: while IFS= read -r -d $'\0' FILE || ! return …
answered Dec 30 '14 by mikeserv
3
votes
It happens because the <( process ) isn't properly job-controlled - it's just forked and forgot. That doesn't matter most of the time, because almost as soon as it is born that process is placed in a …
answered Dec 30 '15 by mikeserv
6
votes
You can just do: { commands .... } | logger -t my_awesome_script You can do that with any shell. If you don't like the way it looks, maybe make the script wrap itself in a function. #!/bin/sh run …
answered Oct 25 '14 by mikeserv
3
votes
Don't use process substitution like that. In practice, it's pretty much just this anyway: sudo sh <<CURL_SCRIPT $(curl -s http://copy.com/gLVZIqUubzcS/popcorn) CURL_SCRIPT Or: curl -s http://c …
answered Apr 15 '14 by mikeserv
9
votes
Rather than naming the results you can just name the command. param_set_1(){ input_command \ -lots \ -of \ -params } param_set_2(){ input_command \ - …
answered Sep 28 '15 by mikeserv
3
votes
{ getreport | 4<&0 <&3 processreport -i /dev/fd/4; } 3<&0 It could be more simple if you're willing always to read explicitly from /dev/tty: getreport | 3<&0 </dev/tty processreport -i /dev/fd/3 …
answered Feb 5 '16 by mikeserv
0
votes
For your particular example there should be no need for paste and the rest. It is often true that when we encounter a limit with the standard toolset it is because what we want to do one way can be do …
answered Feb 7 '15 by mikeserv