pipe Questions

12

I often use pipes in Bash, e.g.: dmesg | less Although I know what this outputs, it takes dmesg and lets me scroll through it with less, I do not understand what the | is doing. Is it simply the...
Refined asked 23/3, 2012 at 4:13

2

I just created a custom Pipe and normally I would register it in app.module.ts, but In Angular 17 we dont have that file. How do we register now? TIA I was thinking of importing into the imports ar...
Brinkman asked 21/11, 2023 at 0:49

3

Solved

I have a general question about popen (and all related functions), applicable to all operating systems, when I write a python script or some c code and run the resulting executable from the console...
Hodman asked 11/9, 2009 at 13:25

3

For Example using @if, I am able to do this: @if(items$ | async; as items). I am able to declare 'items' as a variable holding the array of items using the 'as' keyword in the template. How can I a...
Summerlin asked 14/11, 2023 at 0:18

10

Solved

It is possible to pipe data using unix pipes into a command-line php script? I've tried $> data | php script.php But the expected data did not show up in $argv. Is there a way to do this?
Menswear asked 5/5, 2011 at 2:3

5

I have a for loop array of promises, so I used Promise.all to go through them and called then afterwards. let promises = []; promises.push(promise1); promises.push(promise2); promises.push(promise...
Prod asked 15/6, 2016 at 13:38

5

Solved

I basically want to test if stdin has input (like if you echo and pipe it). I have found solutions that work, but they are ugly, and I like my solutions to be clean. On linux I use this: bool Std...
Hemihydrate asked 27/7, 2011 at 4:42

3

in the BusyBox command for Linux exists the command microcom to communicate with a serial modem: BusyBox v1.13.2 (2012-05-10 17:13:08 CEST) multi-call binary Usage: microcom [-d DELAY] [-t TIMEOU...
Waddell asked 28/8, 2012 at 14:17

5

This is tiny snippet of my code. #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <time.h> #include <sys/stat.h> #include <sys/wait.h> ...
Higinbotham asked 29/3, 2011 at 5:37

5

Solved

On GitHub I want to build a table containing pieces of code in Markdown. It works fine except when I put a pipe char (i.e. | ) between the backtick (i.e. ` ) chars. Here is what I want: a | r -...
Turino asked 26/6, 2013 at 12:24

3

I am new to the command prompt want to know how all the command works … I want to know how to apply pipe and filter in cmd to go through the directory and print only those files/folders th...
Baiss asked 24/3, 2013 at 14:7

12

Solved

I am attempting to create a custom pipe that would return a sum of an array in a table, but for whatever reason, Angular is complaining about my pipe not having an 'emod' property. My pipe: import ...
Yarkand asked 2/2, 2021 at 7:25

6

Solved

Can someone post a simple example of using named pipes in Bash on Linux?
Catechism asked 6/11, 2010 at 16:30

3

My question is probably simple but just can't find the way to use pipe within an event like (click) for example. Something like this: <button (click)="quizAnswers(answer?.texte | translate | as...
Talanian asked 30/7, 2016 at 20:15

1

Solved

Is there a way of doing the following ex1 <- quote(iris) ex2 <- quote(dplyr::filter(Species == "setosa" & Sepal.Width > 4)) substitute(x %>% y, list(x = ex1, y = ex2)) #&...
Zampardi asked 10/9, 2023 at 7:16

3

Solved

I want to create a simple IO object that represents a pipe opened to another program to that I can periodically write to another program's STDIN as my app runs. I want it to be bullet-proof (in tha...
Car asked 13/5, 2012 at 6:34

6

Solved

With the magrittr pipe, one could use backticks ( ` ) to include special functions1 in the pipe chain. For example: library(magrittr) c(7, 6, 5) %>% sort() %>% `[`(1) #> [1] 5 # and 3 %&...
Imperforate asked 19/8, 2021 at 12:17

2

Solved

I'd like to disable colors when the output is piped somewhere else than a terminal.
Lordinwaiting asked 2/1, 2019 at 22:1

7

Solved

i need your help, i'm trying to display some datas from my firebase but it trhows me an error like InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe'. There is my service: import { In...
Claudieclaudina asked 1/7, 2017 at 23:5

3

Solved

One such program that uses a wait function like this is this one: #include<stdio.h> #include<stdlib.h> int main() { int pid,fd[2]; int n; char line[20]; if(pipe(fd)<0) { pr...
Noway asked 27/3, 2009 at 14:35

11

Solved

I have to display Euro currency like this : 583 €. But with this code: {{ price | currency:'EUR':true }} I get €583, is there any option in Angular core to move the symbol to right? A lot of eu...
Gatefold asked 22/9, 2016 at 8:32

2

I am trying to learn the piping function (%>%). When trying to convert from this line of code to another line it does not work. ---- R code -- original version ----- set.seed(1014) replicate(6,sa...
Pydna asked 7/4, 2017 at 16:15

5

Solved

Bash allows to use: cat <(echo "$FILECONTENT") Bash also allow to use: while read i; do echo $i; done </etc/passwd to combine previous two this can be used: echo $FILECONTENT | while read i...
Transnational asked 24/10, 2013 at 15:39

1

I have a set of images (as BGRA byte[]) with their respective timestamps in milliseconds and I want to pass it to FFmpeg to build an animation. I'm using FFmpeg v6 right now and in this example I'm...
Shanitashank asked 26/7, 2023 at 2:18

1

Solved

In my R script, I would like to print a message in the middle of a long pipe (which takes a long time to run) without breaking the pipe. I need this to track the progress of the running pipeline. I...
Chon asked 19/7, 2023 at 15:28

© 2022 - 2025 — McMap. All rights reserved.