How do we intercept file saving or output to stdout directly
From:
almahdi
Subject:
How do we intercept file saving or output to stdout directly
Date:
Sun, 23 Aug 2020 23:17:32 -0700 (MST)
How do we intercept and redirect file saving or output to stdout directly in
bash, just like e.g
xkbcomp $DISPLAY
will output and generated a file, but what needed is to put it directly to
stream of stdout which will be piped once.
Tried,
$ xkbcomp $DISPLAY >(cat)
Error: Cannot open "/dev/fd/63" to write keyboard description
Exiting
$ xkbcomp $DISPLAY /dev/stdout
Error: Cannot open "/dev/stdout" to write keyboard description
Exiting
Anyone experience or have insight on this ?
--
Sent from: http://gnu-bash.2382.n7.nabble.com/