[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:35608] Re: ファイルを同期するスクリプト
- From: sakuma <sakuma11999@xxxxxxxxxxx>
- Subject: [debian-users:35608] Re: ファイルを同期するスクリプト
- Date: Sun, 15 Dec 2002 10:52:46 +0900
- List-help: <mailto:debian-users-ctl@debian.or.jp?body=help>
- List-id: debian-users.debian.or.jp
- List-owner: <mailto:debian-users-admin@debian.or.jp>
- List-post: <mailto:debian-users@debian.or.jp>
- List-software: fml [fml 4.0.3 release (20011202/4.0.3)]
- List-unsubscribe: <mailto:debian-users-ctl@debian.or.jp?body=unsubscribe>
- X-ml-info: If you have a question, send e-mail with the body "help" (without quotes) to the address debian-users-ctl@debian.or.jp; help=<mailto:debian-users-ctl@debian.or.jp?body=help>
- X-ml-name: debian-users
- X-mlserver: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post)
- X-spam-level:
- X-spam-status: No, hits=-1.0 required=10.0 tests=IN_REP_TO,ISO2022JP_CHARSET,FROM_NAME_NO_SPACES, FROM_ENDS_IN_NUMS,PLING,ISO2022JP_BODY,CASHCASHCASH, UPPERCASE_25_50,WEIRD_PORT version=2.31
- References: <3DFBBEB9.40104@xxxxxxxxxxx> <20021214.191933.607960931.kenichi.matsuda@xxxxxxxxxx>
- Message-id: <871y4kqc9f.wl@xxxxxxxxxxxxxxxx>
- X-mail-count: 35608
- User-agent: Wanderlust/2.8.1 (Something) SEMI/1.14.4 (Hosorogi) FLIM/1.14.4 (Kashiharajing-mae) APEL/10.4 Emacs/21.2 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI)
>>> Keni Matsudaさん:
(<20021214.191933.607960931.kenichi.matsuda@xxxxxxxxxx>にて)
>> file1とfile2があるとき、最終更新日時があたらしい方を他方に上書きするスクリプトを
>> つくりたいのですが、思い浮かびません。どんな方法がありますか。
> if [ FILE1 -nt FILE2 ]; then
> cp -p FILE1 FILE2
> else
> cp -p FILE2 FILE1
> fi
cp -p
は
touch -r
の間違いでは?
-- sakuma