ablog

不器用で落着きのない技術者のメモ

2010-02-03から1日間の記事一覧

bash でファイルの最終更新時刻が現在と同じ時間か調べる方法

$ touch a $ touch b -t `date -d "-1 days" '+%Y%m%d%H%M'` $ ls -l total 0 -rw-r--r-- 1 oracle oinstall 0 Feb 3 16:10 a -rw-r--r-- 1 oracle oinstall 0 Feb 2 16:10 b $ ls|while read line do if [ "`stat --print=%y $line|perl -ple 's/([0-9\-:\s…

Linux でファイルの更新日時のみを取得する方法

$ touch a $ stat --print=%y a 2010-02-03 15:44:12.000000000 +0900

VMware Workstation 7 上のゲストOSからホストOSの外のネットワークに接続する方法

結論としては、ゲストOSの設定がダメダメだっただけでしたw 環境 VMware Workstation 7.0.0 build-203739 ゲストOS # cat /etc/issue Red Hat Enterprise Linux Server release 5.3 (Tikanga) Kernel \r on an \m # uname -a Linux db101 2.6.18-128.el5 #1 …