a*******e 发帖数: 3021 | 1 一个目录下全是.NEF文件,
我要用一个命令转换成jpg,
exiftool -b -JpgFromRaw file1.NEF > file1.jpg
exiftool -b -JpgFromRaw file2.NEF > file2.jpg
咋写个命令行一下就行了?谢谢 :) |
E*V 发帖数: 17544 | 2 for i in fi*.NEF ; do exit ........ ${i} > {i}.jpg ; done
if you don't like a.nef.jpg
you can do shell string substring
like
${i:0:5}
or
read
http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/string-manipulation.html
【在 a*******e 的大作中提到】 : 一个目录下全是.NEF文件, : 我要用一个命令转换成jpg, : exiftool -b -JpgFromRaw file1.NEF > file1.jpg : exiftool -b -JpgFromRaw file2.NEF > file2.jpg : 咋写个命令行一下就行了?谢谢 :)
|
a*******e 发帖数: 3021 | 3 ironically, I already have that ebook :D
I tried to write a script and it can do the job so far.
I remember they can use some thing like piping or whatsoever to do the same
thing in command line, not script..., like using output from ls as input for
another command.
【在 E*V 的大作中提到】 : for i in fi*.NEF ; do exit ........ ${i} > {i}.jpg ; done : if you don't like a.nef.jpg : you can do shell string substring : like : ${i:0:5} : or : read : http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/string-manipulation.html
|