由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 怎么转换一批文件?(NEF to jpg)
相关主题
有人知道怎么给jpg文件加时间戳嘛?xterm got kill when i run my application, how come ?
How to debug "broken pipe" in linux programming ?screen里如何给所有窗口发送同一个msg?
grep 的很奇怪的现象发包子 echo 求助
[请教]文件输入 (转载)Inter-thread pipe会写磁盘吗?
如何能让mitbbs RSS输出 (转载)how can python code wait for signal from a c code program ?
请教一个shell的问题Linux Hosting---CloudatCost --- $35 ONE TIME COST
A question about two linux commands没有root权限怎么安装gcc (RHEL)
100伪币答谢Linux/Unix编程问题Old iron gas pipes are leaking across Michigan
相关话题的讨论汇总
话题: nef话题: jpg话题: jpgfromraw话题: exiftool话题: 文件
进入Linux版参与讨论
1 (共1页)
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

1 (共1页)
进入Linux版参与讨论
相关主题
Old iron gas pipes are leaking across Michigan如何能让mitbbs RSS输出 (转载)
Old iron gas pipes are leaking across Michigan (转载)请教一个shell的问题
在ebay上买了一个单反,居然没sealed,是不是就退了A question about two linux commands
我的GPS receiver100伪币答谢Linux/Unix编程问题
有人知道怎么给jpg文件加时间戳嘛?xterm got kill when i run my application, how come ?
How to debug "broken pipe" in linux programming ?screen里如何给所有窗口发送同一个msg?
grep 的很奇怪的现象发包子 echo 求助
[请教]文件输入 (转载)Inter-thread pipe会写磁盘吗?
相关话题的讨论汇总
话题: nef话题: jpg话题: jpgfromraw话题: exiftool话题: 文件