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.

2
votes
2answers
62 views

GNU “parallel --pipe” doesn't process stdin by lines

I'm super confused about how to use GNU parallel to pass stdin to the job command.I have what I imagined to be a really common use case. I have some process xxd that does something with stdin and ...
0
votes
1answer
18 views

using xargs pass arguments to sub shell with pipe

I want to rename a number of files. I think I can use xargs to do it.find http://superuser.com/ -name "upload.log-*" http://superuser.com/upload.log-20180622.gz-20180624.gz-20180626.gzhttp://superuser.com/upload.log-20180624.gz-20180626.gzhttp://superuser.com/upload.log-...
2
votes
1answer
29 views

Duplicating stderr output and merge with stderr in bash without changing order

I want to write both stderr and stdout to a log file, and print stderr to the terminal (or default output device).Motivation: I have a command in my crontab, and I want to log all of its output to a ...
2
votes
1answer
155 views

How to concatenate two lines with `sed`?

I am trying to concatenate two lines of iwlist output. My grep and sed commands to remove leading and trailing spaces work fine but I can't get the last sed statement to remove the \n to work. What am ...
1
vote
1answer
58 views

Using > and < inside a batch file, with a for loop

When doing this inside a test.bat file:for %%i in (__src\*.js) do jsmin <"%%i" >"temp\%%~ni%%~xi" "(C) Example"I was expecting to see:D:\Temp>jsmin <"__src\background.js" >"temp\...
1
vote
2answers
40 views

Linux bash - how to run a list of binary files that is generated from another script?

I have a script that generates list of binary files to be executed:\home\joe\bin\script1\home\joe\bin\script2\home\joe\bin\script3..Question 1:How can I run all of these files one by one from ...
0
votes
2answers
899 views

Get response body and show HTTP code by curl

I have endpoint which returns JSON (response body). I need get by curl the response body and process it (for example using jq). It works:response=$(curl -s https://swapi.co/api/people/1/?format=json)...
1
vote
1answer
24 views

How can I use the Linux terminal to pipe only parts of program input concatenated with hard strings?

I understand that I can use xargs like this:echo "-i inputfile.raw -o outputfile.jpg" | xargs -t http://superuser.com/myprogramHowever, I am fuzz-testing the application and I have a fuzzer which works like this:...
0
votes
1answer
54 views

How to add a custom parser for a file type into MC viewer?

When you press F3 on a .sqlite file in midnight commander the Viewer shows the SQL dump of the file instead of the original binary, and F8 can be used to switch between parsed and raw modes.This ...
4
votes
2answers
385 views

Testing grep exit status with pipe and variable unsuccessful

I need as short as possible bash test command (bracket test) to evaluate result of piped grep with variable as search argument. I am testing, whether a new string is in the array - piping the array ...
1
vote
2answers
66 views

Pipe output from program to a dynamic named file (contains date)

I am still a bottle feeding linux newbie, so go easy. I've googled myself this far but can't find the answer.I'm running a program that outputs csv data, and piping it to log.csvI'm looking for a ...
2
votes
0answers
62 views

Can a Win10 GURU automate this solution for splitting videos upon resolution changes? [duplicate]

Can a Windows10 Guru help automate this?I have failed at automating Lord Neckbeard's solution in the following post: How to split video files upon detected change in resolution? (ie. recorded ...
1
vote
1answer
121 views

Command line: How to handle spaces in filenames

I am measuring the total sizes of a bunch of files, whose paths I have stored in a text document, files.txt. Example contents of files.txt:file1.txtfile2.txtfile3.txtThis shell command gives me ...
0
votes
0answers
17 views

WALL into vi / emacs?

How would I WALL a program template into vi or emacs? Tried this with no luck:wall vi template.Ccat template.C | wallwall :wqNote: template.C contains a template for C++ code, i.e. include ...
1
vote
0answers
46 views

Proper permissions for postfix piped script

As my almost-alliterative title states, I am attempting to configure postfix to pipe incoming messages to a PHP script. As it currently stands, postfix apparently attempts to run the script as the '...

153050per page