LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Fixing signal 13 error on find (https://www.linuxquestions.org/questions/linux-general-1/fixing-signal-13-error-on-find-4175578881/)

aniket669 05-03-2016 02:14 AM

Fixing signal 13 error on find
 
I have a situation where I'm trying to install softwares into my system. I'm using a fakeroot approach to install them in a separate directory where I'm listing all the files, directories and links they install into 3 files FILES,DIRS,LINKS. Then I'm using find to get sha1sums of all files in a file named sha1sums. I don't want the sha1sum of the file sha1sums itself. So I used this command

Code:

find . -type f -exec sha1sum {} \; | grep -ve "\./sha1sums$" >sha1sums
This worked fine. However when installing kbd-2.0.3, it threw a lot of lines of error-

Code:

find: 'sha1sum' terminated by signal 13
I know signal 13 stands for Broken Pipe. But I don't get two things-
  1. Why is it happening with only this package?
  2. This is probably being caused by grep closing the read pipe. But why is it closing it?

Also I checked that there are some sha1sums listed on the file "sha1sums". It just stops after a certain point
Thanks in advance.

Keith Hedger 05-03-2016 07:00 PM

some of your filenames may have spaces in try using '{}' instead of {}


All times are GMT -5. The time now is 02:54 PM.