How to use NULL (\\0) as the delimiter in GNU sort
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: i am looking for a way to sort the results of find returning a number of directories correctly for further processing in a bash script. since filenames can't contain the NULL (\0) character i thought this would make a great delimiter for the results being piped to sort . so this is what i would expect to work as described: find ./ - maxdepth 1 - type d - iname 'xyz?' - print0 | sort - t $ '\0' but sadly i got the compaint sort: empty tab looking around for a explanation a came across a question leading to a similar result that the