Subscribed unsubscribe Subscribe Subscribe

hasen's tech life

Twitter: @hasen

xargs: grep: terminated by signal 13というエラーが出たので対応

Shell

# xargs: grep: terminated by signal 13というエラーが出たので対応.

$ find ./PATH/TO/DIR/ -type f | xargs grep 'TEXTTEXT' | echo > ~/PATH/TO/FILE
> xargs: grep: terminated by signal 13

# 下記で良かった
$ find ./PATH/TO/DIR/ -type f | xargs grep 'TEXTTEXT' > ~/PATH/TO/FILE