Changes between Version 2 and Version 3 of TipAndDoc/console/shell
- Timestamp:
- Oct 4, 2012 11:05:07 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TipAndDoc/console/shell
v2 v3 57 57 ... 58 58 }}} 59 60 * [http://stackoverflow.com/questions/6563979/linux-gnu-sort-how-to-use-null-0-as-delimiter bash - linux GNU sort: how to use NULL (\0) as delimiter - Stack Overflow] 61 > -t is the field separator. If you want to use \0 as the line separator then you need to use -z. 62 > 63 > Use the -z option to sort zero-terminated data sets: 64 > {{{ 65 > find ./ -maxdepth 1 -type d -iname 'xyz?' -print0 | sort -z | tr '\0' '\n' 66 > }}}