|
From: | Tyler Thorsted |
Subject: | Creating directory with partial filename |
Date: | Mon, 3 Jun 2013 19:52:01 +0000 |
Hello,
I am new to parallel and didn't see in the manual a way to use a portion of a filename in creating a folder to move files into after processing.
I am using ImageMagick to convert images to another format and my naming convention for files is static up until the last 6 characters, which are unique to each image.
I would like to create a directory via the script to create a folder with the static portion of the filename and process all the images with that static portion to the that folder.
ie.
M1234_b0000_f0001_00001.tif
M1234_b0000_f0001_00002.tif
M1234_b0000_f0001_00003.tif
M1234_b0000_f0001_00004.tif
all jpg images would process to a directory named M1234_b0000_f0001
and
M1234_b0000_f0002_00001.tif
M1234_b0000_f0002_00002.tif
M1234_b0000_f0002_00003.tif
M1234_b0000_f0002_00004.tif
all jpg images would process to M1234_b0000_f0002
I have used the regex "s/.\{6\}$//" in other scripts to get the folder name, but how do I use it in parallel.
Thanks.
Tyler Thorsted
|
[Prev in Thread] | Current Thread | [Next in Thread] |