Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91264
  • 博文数量: 26
  • 博客积分: 1050
  • 博客等级: 少尉
  • 技术积分: 276
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-05 20:44
文章分类

全部博文(26)

文章存档

2010年(26)

我的朋友

分类:

2010-09-03 13:45:36


转化某个UNIX时间为 date 显示格式
perl -e "print scalar localtime(1281602155)";

查找某个module的位置
find `perl -le 'print for grep {$_ ne q{.}and -d} @INC'` -name "Config*"

查找某个module的位置
perl -MCPAN -le 'print $INC{"Config.pm"}'
/vendor/perl-5.10/lib/5.10.0/x86_64-linux-thread-multi/Config.pm

替换文件中某一内容,原文件备份为 .bak结尾
   DOS to Unix text convert
perl -i bak -pe 's/\r//g' file
I strongly recommend previewing without the -i option before making permanent changes!

显示时间的UNIX标准时间格式:
date +%s
阅读(1696) | 评论(2) | 转发(0) |
0

上一篇:NetApp Filer: maxdirsize

下一篇:Perl Tips

给主人留下些什么吧!~~

chinaunix网友2010-09-11 13:15:13

http://www.b2c001.com.cn/ 免熏蒸托盘 http://www.jiaoyib2b.com.cn/电缆线木盘 http://www.b2c001.com.cn/ 木栈板 http://www.b2c001.com.cn/ 木质托盘 http://www.jiaoyib2b.com.cn/铁木盘 http://www.b2c001.com.cn/ 托盘包装 http://www.jiaoyib2c.com.cn/ 木箱制作ijn568h华宜物流公司

chinaunix网友2010-09-04 14:40:39

Download More than 1000 free IT eBooks: http://free-ebooks.appspot.com