僕の備忘録(PC、UN*X、ネットワーク関連が中心)なんです。
自分の書いたところは適当(な時とか)に書き換えますので御了承を。
>>> a = "This is a pen." >>> while len(a) > 0: print a; a = a[0:-1] ... This is a pen. This is a pen This is a pe This is a p This is a This is a This is This is This i This This Thi Th T >>> b = '0123456789ABCD' >>> b[::] '0123456789ABCD' >>> b[len(b) - len(b) : len(b) : len(b) / len(b)] '0123456789ABCD' >>> b[::-1] 'DCBA9876543210' >>> b[len(b) - 1 : (len(b) + 1) * -1 : len(b) / len(b) * -1] 'DCBA9876543210'
ファイル名、ファイルサイズ、更新日時etcだけじゃなかった。
同じ名前、サイズのファイルを用意してみた。 fromディレクトリにある
ファイルの方が古い。
$ md5sum */test.img 32ca18808933aa12e979375d07048a11 from/test.img 0ac75c44fc3131e8a4ed4888298156ba to/test.img $ rsync -a from/ to/ $ md5sum */test.img 32ca18808933aa12e979375d07048a11 from/test.img 32ca18808933aa12e979375d07048a11 to/test.img
リンクはご自由にどうぞ。でもURLや内容が変った場合はあしからず。