xyb3rt / sxiv

Simple X Image Viewer
GNU General Public License v2.0
1.82k stars 261 forks source link

Feature request: add `-0` option to output files terminated by a null character #447

Open snowman opened 3 years ago

snowman commented 3 years ago

Description

Currently, the output of sxiv is not terminated by null

Expected

The -0 option corresponds to the -print0 option of find

By using -0 option, sxiv output files using NUL as delimiter instead of newline

$ find . -type f -name "*.png" -print0 | xargs -0 sxiv -0 -io | xargs -0 rm -vf
PRESFIL commented 3 years ago

Duplicate of: #445