KDE 发表于 2006-1-24 23:04:20

修正时间戳错误的工具

由于时差的影响,每次新版本的 eva 时间戳都太超前了,导致编译报错,我写了一个小脚本 tchdir 解决这个问题。先要赋予可执行权限:
chmod a+x tchdir
然后把这个 tchdir 放到 /bin 就能用了


#!/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

热メ袭 发表于 2006-1-30 19:03:11

find ~/eva -user man -exec touch {};
man指导下载并接开tar包的用户。

很多命令都没使用过,不知道行不行?
页: [1]
查看完整版本: 修正时间戳错误的工具