A pipe is a form of redirection that is used in Linux and other Unix-like operating systems to send the output of one program to another program for further processing.

learn more… | top users | synonyms

3
votes
2answers
86 views

Recursively rename files [duplicate]

there is a whole bunch of files all of them who have the pattern joob_1_1 joob_1_2 joob_2_1 joob_2_5 so it is joob then underscore numeric underscore numeric - these are also the only files in the ...
0
votes
1answer
22 views

how to pass single file not list of files

I am running this command while IFS= read -r file;do split -l 20000 -d "$file" "$file";done < file.list.txt now my problem is that this accepts as input a list of files (file.list) which looks ...
0
votes
1answer
26 views

Pipelining and xargs

I am trying to delete some .class file from a directory. So first I have tired to count the available .class file using the following command (after going to the directory) - $ find . -name *.class ...
1
vote
1answer
54 views

How to execute a number of lines using xargs

I have a large sql dump that has 1 insert statement per line. I want to be able to pipe this to xargs so that I can slow down the writes. Basically I want to execute a number of lines, sleep, then ...
0
votes
1answer
138 views

Ubuntu 14.04 on Thinkpad T440S keyboard Issue

I installed Ubuntu Trusty on a brand new lenovo Thinkpad. So far things are going well except for the following: The pipe key gives the < symbol, and when shift is pressed, it gives the > symbol. ...
1
vote
2answers
29 views

how to remove files that are smaller than certain dimensions

I have already found an answer that lists pretty much everything. Except I cannot get it to work. I use: find . -iname "*.jpg" -type f | xargs -I{} identify -format '%w %h %i' {} | awk ...
0
votes
0answers
12 views

system backup and restore for recovering from broken pipes error

my system is broken down(showing broken pipe error after grub loading) so can i use backup the whole system than install new ubuntu 12.04 and restore my data.any one can tell that system would not ...
1
vote
1answer
37 views

Redirection with pipe

I have the following command to be executed. ls > myFile.txt | wc The output of the command shown is 0 0 0 Why isn't the above command giving the line/word/character count of ls output? Am ...
2
votes
2answers
115 views

Find folders of size lesser than x and delete them

I want to find all folders (within a folder) which are less than 100mb large and delete them. I actually don't want to use a bash script. But probably there is some neat one-line-loop possibility to ...
1
vote
3answers
161 views

One liner ffmpeg (or other) to get only resolution?

I'm not really well versed in the command line so hopefully this isn't too stupid of a question. If I run: ffmpeg -i videofile.avi I get an output such as this: ffmpeg version ...
0
votes
0answers
55 views

How to dump selected iwconfig outputs to text files? (to analyse Tx-power, bit rate, link quality, etc. for EMF reduction)

BACKGROUND I've read about Electromagnetic Field (EMF) pollution and I want to protect myself. I have a not bad solution for my smartphone, now decided to tackle WiFi. It appears that power of the ...
0
votes
0answers
29 views

SSH X windows pipe error message

SSH X windows pipe is successful in displaying a calculator first time out, not satisfied by this I am curious to know what this error message is trying to tell me. ** (gcalctool:3556): WARNING **: ...
0
votes
1answer
83 views

How to create the vertical line [Pipe]

I am new to Ubuntu and i want to know how to create the vertical line that's Pipe in ubuntu 14.10
0
votes
1answer
30 views

How to remove some packages which contain a certain keyword?

For example, when I want to remove Xfce, I did this: aptitude search xfce | grep ^i id gtk2-engines-xfce - GTK+-2.0 theme engine for Xfce id libxfce4ui-common ...
0
votes
1answer
82 views

Why doesn't redirecting output from nginx work?

I want to list all modules of nginx server by line, so I type the following: nginx -V | tr -- - '\n' But it doesn't put modules in lines. If I do it like this: 2>&1 nginx -V | tr -- - '\n' ...
1
vote
1answer
804 views

curl .gz file and pipe it for decompression

I am trying to download some .gz files (N.B. not .tar.gz ones) from given URLs and decompress them to overwrite existing files, if any. For each individual download, I tried the following: curl -O ...
3
votes
2answers
7k views

Broken pipe error nessage

When I boot up in ubuntu 14.10 beta 2, I get the following message for a moment on the screen: "error while reading descriptor: broken pipe: The screen than goes black for a moment the continues on ...
0
votes
1answer
57 views

Console errors are not being shown

The problem is no errors are being shown even when I type wrong command as shown. There are several cases: bash> blablabla bash> man blablabla The output of lsof -a -p $$ -d0,1,2 gives the ...
0
votes
1answer
494 views

Extract tar.gz to STDOUT and zip STDOUT

I need to extract an tar.gz archive I downloaded with curl into STDOUT and use the STDOUT as STDIN for zipping the files again. curl -L someURL | tar xz --strip-components=1 -O| zip -r test.zip ...
0
votes
1answer
52 views

untar content of folder from tar.gz archive that get's data from STDOUT (wget)

I want to extract the content of a single folder from a tar.gz archive that get's it's input from the STDOUT of wget. My command looks like this: wget -O - http://example.com/file.tar.gz | tar -C ...
0
votes
1answer
44 views

Paging standard out using 'more', and piping to syslog

I've implemented a wrapper script which causes all commands executed via this wrapper script to log (via rsyslog) things such as the execution time, the user that ran the command, and the exit code. ...
1
vote
0answers
71 views

Ubuntu 12.04: C++ Program -> Broken Pipe -> Cannot get past Tty1

While I was running a C++ program (it involved SDL), the computer completely froze up; control C didn't work, and escape didn't work (I had it programmed that escape would close the program). So, ...
0
votes
0answers
67 views

Could not write bytes: broken pipe - booting still works, but graphics are sluggish

I know this question has been brought up many times, but of those solutions that I've tried, none works. Everything seems to work fine, except graphics a acting a little weird - alt-tab takes almost ...
0
votes
3answers
119 views

why pipes are used instead of input redirection

I'm new to linux systems and I can't really understand why wee need two operators that can redirect output: pipe as | and ouput redirection operator >? Can't we just always use the second? Most of ...
0
votes
3answers
58 views

Filter only path of files (without directories path) from output using pipe |

rpm -qpl dhad-9.0.27891-2.x86_64.rpm allows to display all file paths and directory paths of this package . Example of output : /opt/dhad/tv_bin/wine/lib/wine/winmm.dll.so ...
1
vote
3answers
3k views

build command by concatenating string in bash

I have a bash script that builds a command-line in a string based on some parameters before executing it in one go. The parts that are concatenated to the command string are supposed to be separated ...
0
votes
0answers
91 views

leap motion sdk broke ubuntu

I am getting cannot create bytes broken pipe error after installing the leap motion sdk on ubuntu 12.04 Earlier, while installing the two dependencies given in the sdk's readme, i had to sudo apt-get ...
4
votes
1answer
641 views

How can i watch the output that was filtered with grep?

I want to watch the changes of the output gsettings list-recursively|grep text-scal which is org.gnome.desktop.interface text-scaling-factor 1.0 com.canonical.Unity.Interface ...
1
vote
1answer
357 views

Failed Firmware for Linux Kernel Update

I'm a bit new to this, while updating the firmware for Linux kernel drivers (1.79.14) I encountered the following problem: installArchives() failed: (Reading database ... (Reading database ... 5%% ...
6
votes
2answers
335 views

Piping with Moreutils ts

I have an incoming stream at a serial port, with new lines appearing about once per second wren@Raven:~$ cat /dev/ttyUSB0 A_Sensor1,B_22.00,C_50.00 A_Sensor1,B_22.00,C_50.00 ...
2
votes
0answers
43 views

Cannot write bytes: Broken

I am getting an error at beginning while booting itself and so i can't get to my desktop. When i boot i select Ubuntu and then after disabled bios messages i run directly into the black screen with ...
0
votes
0answers
19 views

Ubuntu does not boot, start - could not write bytes broken pipe [duplicate]

with holding shift I can get to recovery menu, but I have no idea how to simply reset whatever may have done this, I am considerig full reinstall however cannot afford to lose files. Any ideas ...
-2
votes
1answer
157 views

How to make a shell script pipe aware

I have the following script: #!/bin/sh [ "${#}" -eq "0" ] && (printf "%s\\n" "${0}: word ..." >&2; exit 1) _whats() { [ -z "${1}" ] && return 1 [ -z "${2}" ] ...
4
votes
2answers
3k views

Why use a named pipe instead of a file?

I recently read about named pipes, and I couldn't understand why they exist. I've read somewhere that using a named pipe is less time-consuming than using a file. Why is this so? The named pipes also ...
3
votes
2answers
161 views

How can I pipe the output of “find” to “cd”?

What should I do to search for a file in list of folders and change current directory to the directory of the file? I tried find -name script.py | cd but it did not work (not that I was expecting it ...
0
votes
2answers
2k views

Error when boot: Could not write bytes: broken pipe

Good day, I see there are various questions about the same topic but it looks like the cause are somewhat different. I tried tor resolve my problem by looking and trying some of the solutions but ...
0
votes
2answers
316 views

Piping into GraphicsMagick

I'm still learning the command line, and I'm having trouble piping a list of files into graphicsmagick for conversion to pdf: find . -type f | sort | gm convert file.pdf This gives the error: gm ...
4
votes
2answers
737 views

Cat to named pipe causes hang

I'm attempting some streaming with FFMpeg, and I think I have finally found the solution I need to screen blanking. This requires writing PNG's to a named pipe and then having FFMpeg read them as an ...
1
vote
1answer
574 views

How to capture all visited URLs on the command line?

I like to get all URLs I visit in the browser live captured on the command-line for piping them to another program. How would I be able to do this? The format should be just one URL per line, nothing ...
1
vote
3answers
90 views

Trying to figure out what the command mean

Please explain me what does this command mean: wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh wget - use wget to download something -qO- first argument is -q, but what does 0- mean? ...
0
votes
1answer
31 views

Named pipes always open for writing

I want to make a named pipe that is always open for reading and writing. So I typed this in to the terminal: mkfifo testpipe exec 3<> testpipe All is working correct. But when I make a shell ...
1
vote
1answer
593 views

Uncompress and pipe the output to script

I have a script that takes an input with a -i flag. The input file I have is compressed (.gz). What I want to do (not sure it's possible), because the file is huge, do some thing like this: gunzip -c ...
1
vote
1answer
167 views

piping using ssh without having to relogin for every pipe

I have an ssh connection and I have to send some local files and output to the ssh server. I know I can do this using the following command tar zcf - stuff | ssh user@server 'tar zxf -' I would ...
1
vote
1answer
91 views

Copy all files whose hashes don't match

I currently have a hash list (known good) of a selection of various files. I want to copy all files when their hashes do not appear in the hash list to a separate directory. I have got the md5deep ...
1
vote
1answer
84 views

help understand diff between: sort < file.txt VS file.txt | sort

so im learning Ubuntu (for the first time) and am reading trough Ubuntu server book chapter 14 says filename.txt | sort will give me an output with the content of the file, but sorted HOWEVER it ...
0
votes
1answer
218 views

When piping output to a file, why are stderr and stdout in the wrong order?

I have a perl script: warn "1\n"; print "2\n"; warn "3\n"; print "4\n"; I pipe the output to a file: perl script.pl &> foo cat foo: 1 3 2 4 Why isn't the output in order, and how do I ...
0
votes
3answers
2k views

Cant login, Broken Pipe?

Okay, so I'm really stuck on this one. So yesterday wile I was playing Kerbal Space Program, the game crashed, so I did a hard shutdown (holding the power button). When I turned it on, it booted just ...
0
votes
1answer
462 views

I can't upgrade 13.10 because of broken pipe

I try upgrading and this is what I get: christopher@chris-computer:~$ sudo apt-get upgrade [sudo] password for christopher: Reading package lists... Done Building dependency tree Reading ...
2
votes
1answer
247 views

Space (and pipe sign) works on occasion only

I have an issue that when I try to write pipe sign "|" and space after that, I sometimes get wrong type of space (\240) and my command fails. This issue persists on different shells. How could I fix ...
0
votes
1answer
134 views

Read only n first lines from something

When I'm saying something like curl http://example.com/123 and I want to read only n first lines, how do I do that? I know that's something like: curl http://example.com/123 | ???