Skip to main content
11 events
when toggle format what by license comment
Feb 23, 2017 at 9:37 comment added Michael Vehrs @Gilles I understand pipelining. My point is that although the individual processes run in parallel, they do not process the input stream in parallel. Therefore they will not be sigificantly faster.
Feb 23, 2017 at 1:11 answer added Gilles 'SO- stop being evil' timeline score: 3
Feb 22, 2017 at 21:21 comment added Gilles 'SO- stop being evil' @MichaelVehrs It may well be slower if you have multiple processors: the second command can process a chunk of data while the first command is processing the next chunk. This is called pipelining. But probably not for such a simple job as this.
Feb 22, 2017 at 9:40 comment added Michael Vehrs @dhag No. The second command reads the output of the first.
Feb 22, 2017 at 2:22 comment added dhag A single command that does two things to a stream may well be slower than two separate piped commands, because those will run concurrently.
Feb 22, 2017 at 1:29 comment added venka99 I was told that each command in a long pipe adds runtime compare to a single command without a pipe.
Feb 22, 2017 at 1:25 comment added user14755 What's wrong with pipes?
Feb 22, 2017 at 1:20 comment added venka99 I used sed to insert D,,3 on the first line. I tried you command and it worked the same. What does NR==1 and next do?
Feb 22, 2017 at 1:14 comment added steeldriver Why do you need sed at all? there are many ways to modify the first line only in awk e.g. awk 'NR==1 {print "D,,3"; next} {$1=""; print $0}'
Feb 22, 2017 at 1:12 review First posts
Feb 22, 2017 at 1:34
Feb 22, 2017 at 1:07 history asked venka99 CC BY-SA 3.0