shell_文件列表
来源:互联网 发布:pdm 软件 编辑:程序博客网 时间:2024/06/04 18:57
save as mtree.sh; then run:
#./mtree.sh
function tree(){for file in $1/*doif [ -d "$file" ]; thenecho "$file/"tree $fileelseff=$(echo $file | sed '/*$/'d)#avoid file like this ".hahaha.txt"if [ "$ff" != "" ]; thenecho $filefifidone}if [ -d "$1" ]; thentree $(echo $1 | sed 's/\/$//g')elsetree .fi
嘎嘎----------------------
还不如:
find $1 -print
效果好!!
just for play......................
- shell_文件列表
- shell_汉诺塔
- Shell_环境变量
- shell_备忘录
- shell_学习(1)
- shell_实现分组统计数据
- shell_猜数字游戏
- shell_脚本_linux_安全加固
- Shell_初讲_基础
- Shell_脚本启动Java App
- shell_编程2(语法)
- shell_检查磁盘剩余空间
- 文件列表
- php文件操作,文件夹列表,文件列表
- 生成文件夹文件列表。
- 获取文件列表
- 获取文件列表
- 常见危险文件列表
- C#实现资源管理器
- 互联网网站的反爬虫策略浅析
- memcpy 与new 开销,在大数据处理时谨慎使用指针
- 多种方法访问局域网中的计算机
- Teradata tools
- shell_文件列表
- Oracle 如何修改表中字段顺序?
- 关于wince 电源管理的一些帖子收集
- 网页设计初学者!如何开始?怎样坚持?
- 基于visual Studio2013解决C语言竞赛题之1031猜数
- oracle表之间的连接
- Windows下QT 5.1.1连接MySQL 5.6数据库步骤 [亲试成功]
- ios一些代码总结
- STM32 时钟设置