星期二, 九月 30, 2008

bash入门:条件语句for...in...

查看当前目录下所有文件的文件类型:
for file in ./* ; do file $file; done;


--
Liu Lantao
College of Information Science and Technology, Beijing Normal University
EMAIL: liulantao ( at ) gmail ( dot ) com ;
WEBSITE: http://www.liulantao.com/ .
------

0 条评论:

发表评论

指向此文章的链接:

创建链接

<< 主页