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/

Reply via email to