linux shell: 取得某个目录下的文件名列表
2016-04-18 21:58
309 查看
取得某个目录下文件名的列表(没有子目录)ls -l dir/ | awk '{print "dir\\" $9}'
#其中$9是ls -l 的第9个字段-文件名
#其中$9是ls -l 的第9个字段-文件名
相关文章推荐
- shell脚本学习心得
- shell中eval的神奇之法,shell中引号的争端
- shell脚本程序
- sprintf(cmd_buff,"%s_bak.exe",pExeName);ShellExecuteA(NULL,"open",cmd_buff,argvs,
- Linux中shell脚本自动输入密码
- ns3中路由协议仿真的shell脚本编写
- shell中的IFS和$*变量
- 在secureCRT中解决hbase spark shell退格不能删除问题
- shell并发处理脚本
- shell脚本之sed使用详解
- shell脚本之grep使用详解
- adb shell 命令
- SHELL syntax error:unexpected end of file 提示错误
- 关于adb logcat
- shell下的进程
- 解决bash: mysql: command not found 的方法
- linux shell实现 URL 编码/解码方法
- linux shell 字符串操作(长度,查找,替换)详解
- 基于CentOS的MySQL学习补充三--使用Shell批量创建数据库表
- xshell的快捷键(非常实用)