Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
workflow:image_type [2018/02/18 21:52] – [PROCESSING] Júne Park | workflow:image_type [2018/07/07 08:00] (current) – [Image data Workflow] Júne Park | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Image data Workflow ===== | ===== Image data Workflow ===== | ||
+ | <alert type=" | ||
+ | **Work in Progress** | ||
+ | </ | ||
+ | |||
+ | ---- | ||
==== FILES ==== | ==== FILES ==== | ||
Line 18: | Line 23: | ||
* Command-line convert utility: [[https:// | * Command-line convert utility: [[https:// | ||
- | * Rename files randomly: [[ | + | * Rename files randomly |
<code bash> | <code bash> | ||
rename -n ' | rename -n ' | ||
</ | </ | ||
- | |||
<code bash> | <code bash> | ||
rename−n′s/(.10).∗(\.jpg)/ | rename−n′s/(.10).∗(\.jpg)/ | ||
Line 33: | Line 37: | ||
The -n option only simulates the command, so that you can verify the changes. Run without it to actually make the changes. | The -n option only simulates the command, so that you can verify the changes. Run without it to actually make the changes. | ||
- | The regex (.{10}).*(\.jpg) consists: | + | The regex '' |
- | .{10} - any 10 characters, in a group (…), followed by .* - any number of any characters followed by \.jpgtheextensionattheend() of the filename, in the second group. The replacement 12 is just the first group followed by the second. | ||
+ | '' | ||
+ | the extension at the end '' | ||
---- | ---- |