shell 如何判断某个文件名以某个字符开头

2025-05-15 07:16:43
推荐回答(1个)
回答1:

ls file|cut -c 1
这样切一个字母出来
或者ls|grep "^a"|wc -l