Questions tagged [pipe]
Pipes or named pipes are a feature of the POSIX standard that allow separate processes to communicate with each other without having been designed explicitly to work together.
411
questions
0
votes
0
answers
13
views
GNU parallel: use `--pipe` to process one line at a time
(This is a follow-up to GNU "parallel --pipe" doesn't process stdin by lines as I cannot get the behavior I want even after reading that question and applying the answer that was given.)
...
0
votes
1
answer
51
views
How to use grep with a pipe symbol from the command line
Maybe I'm missing something very simple, but I don't seem to be able to use grep from the command line (in bash) where the search argument contains a vertical bar |.
For example,
grep a|b
results in ...
-1
votes
2
answers
137
views
Pipe .exe output to text file
I have a utility exe which opens a new window when I run the exe directly or through powershell.
How do I pipe its output to a text file?
I have used
utility.exe > textino.txt
But it creates a ...
0
votes
3
answers
39
views
Why doesn't `bash` work with piped output, when the output is as expected?
I'm running the following command to alias an entire folder of scripts:
ls | grep '\.sh$' | sed 's/\.sh$//' | awk '{print "alias "$1"=\"./"$0".sh\""}' | xargs -...
0
votes
1
answer
243
views
Broken pipe, write error: An epidemic of unnecessary output
In the last few months, a problem has been spreading across my systems. That of broken pipe errors:
# Solution:
# silenced by replacing /bin/bzip2 -> bzip2-reference
# to /bin/...
0
votes
1
answer
88
views
How to get the return value of pipe and executable on Windows
I am running some unit tests which involve piping into my executable, like this.
cat text.txt | my_exe --options
Running these commands, how do I get the return value of my_exe? Even when my_exe ...
0
votes
0
answers
29
views
rstrip On Lines of text being piped through sed s
So I am trying to implement the rstrip function on lines of text being piped into sed s and am having troubles. This is what I have that I think should work:
cat file1.txt | sed 's/[[:blank:]]+$//g;' &...
0
votes
1
answer
30
views
Unable to discard output from redirection followed by &
In the instruction containing a redirection, neither of 1 or 2 or nothing, on the lhs of >/dev/null discards the output, in this case [24] 1073640. This is contrary to my expectation, What could I ...
0
votes
0
answers
40
views
FFmpeg Pipe behavior occurs depending on the version for the same audio file
Pipe behavior occurs depending on the version for the same audio file.
$ ./ffprobe.exe -i - < input.mp3
I am a newbie ... if you tell me any tip how to debug ffmpeg, I want try..
If you wnat get ...
3
votes
1
answer
212
views
How do you pipe the output of vboxmanage clonemedium into dd
I want to pipe my converted .vdi file into /dev/sda. My box.vdi is 2TB and my HDD is also 2TB, but the system I am doing the conversion from is only 128GB. All the resources (ref1 and ref2) I can find ...
0
votes
0
answers
21
views
Linux redirection and piping [duplicate]
I am working on Ubuntu 22.04.2 LTS. I a directory, I have only 2 files
a1.txt a2.txt
when I run the ls a* z* 2> /dev/null | cat I got the result , that is OK. I mean that error was not shown.
But ...
1
vote
0
answers
52
views
CJK unicode characters output from `wine reg query` displayed on terminal are fine. But they become question marks after pipe
When I run wine reg query 'HKEY_CURRENT_USER\Software\Akelsoft\AkelPad\Recent' on my machine, the output is fine and contains something like file0 REG_MULTI_SZ Z:\home\x\怎.txt on my terminal.
...
2
votes
1
answer
452
views
Get `pv` work in `ssh` session
How do I get pv to work when called remotely via ssh?
E.g.
a@a-virtual-machine:~$ ssh [email protected] "pv < ~/Documents/Local/staging.sql.gz" | gunzip > /dev/null
This prints no ...
0
votes
1
answer
129
views
Grepping an specific command give me an old grep output
I need some help, wasn't able to find a solution...
I've made a script to run xfs_growfs and pipe its output to know only if the it found no difference is disk size and gave me an "data size ...
1
vote
1
answer
187
views
Piping commands to smtp server doesn't work
So I was trying to write a bash script to send a mail to someone using smtp.gmail.com server by using openssl.
Everything upto this is working fine:
printf "helo gmail.com\nauth plain $auth\n&...