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...

7.7k - rev: 12 (current) last modified: 2023-09-24 17:44:15

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 ...

25.0k - rev: 27 (current) last modified: 2024-03-28 14:54:08

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 . ...

86.2k - rev: 572 (current) last modified: 2024-04-04 23:09:24

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...

0.6k - rev: 2 (current) last modified: 2009-03-11 17:10:59

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...

9.7k - rev: 10 (current) last modified: 2020-06-19 20:55:24

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 ...

2.3k - rev: 14 (current) last modified: 2023-06-23 18:42:54

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...

41.7k - rev: 46 (current) last modified: 2023-03-02 12:14:34

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...

12.5k - rev: 27 (current) last modified: 2021-03-11 06:07:25

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:]' '[:...

3.3k - rev: 17 (current) last modified: 2012-03-05 11:30:04

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}}}...

5.3k - rev: 15 (current) last modified: 2017-11-13 22:19:11

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...

12.6k - rev: 48 (current) last modified: 2022-01-30 23:49:34

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 ((...

6.4k - rev: 43 (current) last modified: 2023-12-12 13:15:33

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`...

19.7k - rev: 77 (current) last modified: 2023-03-25 22:39:06

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...

9.8k - rev: 72 (current) last modified: 2023-06-28 01:53:29