Results 1 - 15 of about 15 results out of about 94460 pages. (0.02 seconds)
- BashFAQ/106 . . . 3 matches
- ...ile descriptor]] manipulation, and either a [[NamedPipes|named pipe]] or Bash's ProcessSubstitution. We're going to focus on the Bash syntax.
=== Regular logging ===
As mentione...
- BashSyntaxReference . . . 2 matches
- ... from ''word'' plus a newline.||
||`<(`''cmd''`)`||`mapfile -t arr < <(foo)`||[[ProcessSubstitution]]. ''cmd'' is executed as a background process, and the syntax is replaced by ...
- BashPitfalls . . . 2 matches
- ...r BSD `find`'s `-print0` option, together with bash's `read -d ''` option and a ProcessSubstitution:
{{{
while IFS= read -r -d '' file; do
some command "$file"
done < <(find . ...
- CategoryShell . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
These pages discuss issues associated with the Unix command line shells, especially bash, but a...
- BashProgramming/04 . . . 1 match
- ...file
done < <(find "${1:-.}" -type f -exec md5sum -z {} +)
}}}
We begin with a ProcessSubstitution that reads from [[UsingFind|find]]. This will give us the entire stream of MD5...
- BashOpenQuestions . . . 1 match
- ...e not had time to test: http://tldp.org/LDP/abs/html/process-sub.html (see also ProcessSubstitution on this site)
* Commands in a process substitution ( >(cmd) or <(cmd) ) are ...
- BashGuide/InputAndOutput . . . 1 match
- ...v/null)
/var/tmp//sh-np-605454726
}}}
For examples using the `>()` form, see [[ProcessSubstitution]] and [[BashFAQ/106|Bash FAQ 106]].
--------
. '''Good Practice: <<BR>> Proce...
- BashFAQ/105 . . . 1 match
- ...dly start executing in the function but also change its return status!
Using [[ProcessSubstitution|Process substitution]], the exit code is also discarded as it is not visible fr...
- BashFAQ/047 . . . 1 match
- ... stderr) being altered by the {{{sed}}}.
A similar effect can be achieved with ProcessSubstitution:
{{{
# Bash
perl -e 'print "stdout\n"; warn "stderr\n"' 2> >(tr '[:lower:]' '[:...
- BashFAQ/044 . . . 1 match
- ...want to process.
* {{{dialog}}} is invoked, and its input is redirected from a ProcessSubstitution. (A pipe could also be used here; we'd simply have to reverse the {{{dialog}}}...
- BashFAQ/026 . . . 1 match
- ...r choice.
For this example, we'll set up the awk as a background process using ProcessSubstitution. We will read from it by maintaining an open FileDescriptor connected to awk's...
- BashFAQ/024 . . . 1 match
- ...onment after you're through with it could be just what you want anyway.
* Use ProcessSubstitution (Bash/Zsh/Ksh93 only):
{{{
# Bash/Ksh93/Zsh
while IFS= read -r line
do
((...
- BashFAQ/005 . . . 1 match
- ...sh 4
mapfile -t lines <myfile
# or
mapfile -t lines < <(some command)
}}}
See ProcessSubstitution and [[BashFAQ/024|FAQ #24]] for more details on the `<(...)` syntax.
`mapfile`...
- BashFAQ/001 . . . 1 match
- ...les]], etc.) will be lost when the loop finishes. To avoid that, you may use a ProcessSubstitution:
{{{#!highlight bash
linecount=0
while IFS= read -r line; do
linecount=$((l...