Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

I am having a noob moment.

Name: Anonymous 2010-12-06 6:38

How do i combine the following two concepts in a single command line?
#define the filename:
exiftool -p '${DateTimeOriginal}__${ShutterSpeed}s_f${Aperture}_${EXIF:ISO}_${focallength}' $1 \
| awk '{gsub(/:/,"-");gsub(/.0 mm/,"mm");gsub(/ /,"_");gsub(/\//,"-");print $0}'
#move the file to the new name
mv -n -T "$1" "{}"
....so that the result is a single filename parameter goes in, and a renamed file results.

Name: Anonymous 2010-12-06 6:44

You're having a "I'm a complete fucktard that can't use [code] tags and is still trying to do something more complex" moment.

Name: Anonymous 2010-12-06 19:07

#define the filename:
exiftool -p '${DateTimeOriginal}__${ShutterSpeed}s_f${Aperture}_${EXIF:ISO}_${focallength}' $1 \
| awk '{gsub(/:/,"-");gsub(/.0 mm/,"mm");gsub(/ /,"_");gsub(/\//,"-");print $0}'
#move the file to the new name
mv -n -T "$1" "{}"

Name: Anonymous 2010-12-06 22:17

provide sample input and output. i still use a daguerreotype and a mimeograph.

Name: Anonymous 2011-02-18 20:02


Don't change these.
Name: Email:
Entire Thread Thread List