command-1.9a-setup
command-2.0a-setup
command-2.0c-setup
command-2.0-setup
我想对文件进行排序以获得此结果:
command-1.9a-setup
command-2.0-setup
command-2.0a-setup
command-2.0c-setup
我试过了
find /data/ -name 'command-*-setup' | sort --version-sort --field-separator=- -k2
但产量是
command-1.9a-setup
command-2.0a-setup
command-2.0c-setup
command-2.0-setup
tree -v /data
我怎么能按需要的顺序排序输出?