FBinJapan

 找回密码
 注册
搜索
楼主: DigiPub

请教Mac粉

[复制链接]
 楼主| 发表于 2009-6-28 00:07:11 | 显示全部楼层

OK I FOUND THE FILES ON MY DESKTOP!

and find an MACOSX built-in application - Grap

[ 本帖最后由 DigiPub 于 2009-6-28 00:10 编辑 ]
Picture 1.png
 楼主| 发表于 2009-6-28 00:47:49 | 显示全部楼层

failure

原帖由 DigiPub 于 2009-6-25 00:57 发表
ls --time-style=”+%Y-%m-%d %H:%M:S”
ls --time-style=long-iso
できるらいい

It does not work on Mac.

[ 本帖最后由 DigiPub 于 2009-6-28 00:54 编辑 ]
2.jpg
 楼主| 发表于 2009-6-28 03:36:54 | 显示全部楼层

Apple no Mac Asobase

Organizr Access with Mac
 楼主| 发表于 2009-6-28 13:38:45 | 显示全部楼层

done

steves-power-mac-g5:~/Desktop/desktop-tst guest$ cat filerename.awk
#! /usr/bin/awk -f

BEGIN {
  print "#! /bin/bash -f \n"
}
# main
{
  i = split($9, I, "/")
  t = $8
  sub(/\:/, "-", t)
  print "cp -p " $9 " ./merged/" $6 "-" $7 "_" t "-" I[ i]
}
steves-power-mac-g5:~/Desktop/desktop-tst guest$ cat go.sh
#! /bin/bash -f

find . -type f -name "IMG_*.JPG" | xargs ls -l > list.txt
awk -f filerename.awk list.txt > renamecopy.sh
chmod +x renamecopy.sh
touch merged
rm -r merged
mkdir merged
./renamecopy.sh
ls -l merged > merged/filelist.txt
mv list.txt merged/originallist.txt
cat merged/filelist.txt
rm renamecopy.sh
steves-power-mac-g5:~/Desktop/desktop-tst guest$

[ 本帖最后由 DigiPub 于 2009-6-28 13:41 编辑 ]
script.gif
 楼主| 发表于 2009-7-4 23:31:47 | 显示全部楼层

he told that he want to apply on any camera,

so i did the following change to match any kind of digital camera

---------------------
#! /bin/bash -f

find . -type f -name "*.JPG" | xargs ls -l > list.txt
find . -type f -name "*.jpg" | xargs ls -l >> list.txt
awk -f filerename.awk list.txt > renamecopy.sh
chmod +x renamecopy.sh
touch merged
rm -r merged
mkdir merged
./renamecopy.sh
ls -l merged > merged/filelist.txt
mv list.txt merged/originallist.txt
cat merged/filelist.txt
rm renamecopy.sh
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|www.fbinjapan.net

GMT+9, 2024-11-26 04:15 , Processed in 0.058895 second(s), 16 queries .

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

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