QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5803|回复: 1

修正时间戳错误的工具

[复制链接]
发表于 2006-1-24 23:04:20 | 显示全部楼层 |阅读模式
由于时差的影响,每次新版本的 eva 时间戳都太超前了,导致编译报错,我写了一个小脚本 tchdir 解决这个问题。先要赋予可执行权限:
[code:1]chmod a+x tchdir[/code:1]
然后把这个 tchdir 放到 /bin 就能用了

[code:1]
#!/bin/bash
# tchdir----touch dir(s) and files(s) recursively, you can modify the
# time stamps of all the files in the target dir(s).
# USAGE: tchdir <dir1 dir2...  file3 file4...>
for F in $* ; do
touch $F
if [ -d $F ] ; then
cd $F
$0 *
cd ..
fi
done
[/code:1]
发表于 2006-1-30 19:03:11 | 显示全部楼层
find ~/eva -user man -exec touch {};
man指导下载并接开tar包的用户。

很多命令都没使用过,不知道行不行?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-25 21:03 , Processed in 0.109280 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表