Quantcast
Channel: User Dennis Williamson - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 61

Comment by Dennis Williamson on Obtain a list of files in Terminal in same order as in Finder

$
0
0
Note that the sort -V (regardless of the -V) example fails if filenames include newlines. This is what I came up with: find . -print0 | sort -Vz | tr '\0' '\n' which includes the dirname (here ./) in each entry. There are probably other methods

Viewing all articles
Browse latest Browse all 61

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>