02-06-2009
Renaming multiple files from a lookup table
Is it possible to modify the script above to rename files based on a lookup table?
e.g.:
Current New
A87324.jpg A1372365.jpg
A89732.jpg A98274.jpg
A130347.jpg A73689.jpg
...
Thanks,
Rick
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear all thanks for helping in advance.. Know this should be fairly simple but I failed in searching for an answer.
I have a file (replacement table) containing two columns, e.g.:
ACICJ ACIDIPHILIUM
ACIF2 ACIDITHIOBACILLUS
ACIF5 ACIDITHIOBACILLUS
ACIC5 ACIDOBACTERIUM
ACIC1 ACIDOTHERMUS... (10 Replies)
Discussion started by: roussine
10 Replies
2. Shell Programming and Scripting
hi,
I have two xml files with the name source.xml and tobe_replaced.xml.
Sample data:
source.xml contains:
<?xml version="1.0"?>
<product description="prod1" product_info="some/info">
<product description="prod2" product_info="xyz/allinfo">
<product description="abc/partialinfo"... (2 Replies)
Discussion started by: dragon.1431
2 Replies
3. Shell Programming and Scripting
hi;
i am looking for simple search script that find string from file1 in file 2
file 1 contain a loot of string like:
204080111111111
204080222222222
204080333333333
in each row
and i would like to take the first row for example 204080111111111 from file1 and find it in file2 when it... (1 Reply)
Discussion started by: kpinto
1 Replies
4. Shell Programming and Scripting
I have 2 files:
file1.txt:
1|15|XXXXXX||9630716||0096000||30/04/2012|E|O|X||||20120525135617-30.04.2012|PAT66OLM|STA||||00001|STA_0096000_YYYPPPXTMEX00_20120525135617_02_P.pdf|... (2 Replies)
Discussion started by: pparthiv
2 Replies
5. Shell Programming and Scripting
hello forum members,
I am siva ,As i am new to perl scripting i looking help from forum members.
i need a sample program are command for pattern matching.
I have file name infile1 which some data, I need to search the particular number are string in the file which repeats n number of... (0 Replies)
Discussion started by: workforsiva
0 Replies
6. UNIX for Dummies Questions & Answers
I have very limited coding skills but I'm wondering if someone could help me with this. There are many threads about matching strings in two files, but I have no idea how to add a column from one file to another based on a matching string.
I'm looking to match column1 in file1 to the number... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
7. Shell Programming and Scripting
I have a file containing texts and indexes. I need the text between (and including ) INDEX and number "1" alone in line. I have managed this:
awk '/INDEX/,/1$/{if (!/1$/)print}' file1.txt
It works for all indexes.
And then I have second file with years and indexes per year, one per line... (3 Replies)
Discussion started by: phoebus
3 Replies
8. Shell Programming and Scripting
I am trying to use awk to find all the $2 values in file2 which is ~30MB and tab-delimited, that are between $2 and $3 in file1 which is ~2GB and tab-delimited.
I have just found out that I need to use $1 and $2 and $3 from file1 and $1 and $2of file2 must match $1 of file1 and be in the range... (6 Replies)
Discussion started by: cmccabe
6 Replies
9. Shell Programming and Scripting
Trying to use awk to match each line in file1 with line in file2 using $1 and $2 and print. File2 is tab-delimeted as is the output and if there is no match then it is skipped. The awk below executes but the output is empty. I think file1 is being split on the : and being saved in array c which... (3 Replies)
Discussion started by: cmccabe
3 Replies
10. UNIX for Beginners Questions & Answers
I have the below string which i need to compare with a file and replace this string in the file which matches closely. Can anyone help me on this.
string(Scenario 1)- user::r--,user::ourfrd:r--
String(Scenario 2)- user::r--
File
****
# file: /local/Desktop/myfile
# owner: me
# group:... (6 Replies)
Discussion started by: sarathy_a35
6 Replies
LEARN ABOUT OPENSOLARIS
jpegicc
JPEGICC(1) General Commands Manual JPEGICC(1)
NAME
jpegicc - little cms ICC profile applier for JPEG.
SYNOPSIS
jpegicc [options] input.jpg output.jpg
DESCRIPTION
lcms is a standalone CMM engine, which deals with the color management. It implements a fast transformation between ICC profiles. jpegicc
is little cms ICC profile applier for JPEG.
OPTIONS
-b Black point compensation.
-c <0,1,2,3>
Precalculates transform. (0=Off, 1=Normal, 2=Hi-res, 3=LoRes) [defaults to 1]
-g Marks out-of-gamut colors on softproof.
-h <0,1,2>
Show summary of options and examples.
-i profile
Input profile (defaults to sRGB).
-m <0,1,2,3>
SoftProof intent.
-n Ignore embedded profile.
-p profile
Soft proof profile
-o profile
Output profile (defaults to sRGB).
-q <0..100>
Output JPEG quality.
-t <0,1,2,3>
Intent (0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute).
-v Verbose.
EXAMPLES
To color correct from scanner to sRGB:
jpegicc -iscanner.icm in.jpg out.jpg
To convert from monitor1 to monitor2:
jpegicc -imon1.icm -omon2.icm in.jpg out.jpg
To make a CMYK separation:
jpegicc -oprinter.icm inrgb.jpg outcmyk.jpg
To recover sRGB from a CMYK separation:
jpegicc -iprinter.icm incmyk.jpg outrgb.jpg
To convert from CIELab ITU/Fax JPEG to sRGB
jpegicc -iitufax.icm in.jpg out.jpg
NOTES
For suggestions, comments, bug reports etc. send mail to info@littlecms.com.
SEE ALSO
tifficc(1), icc2ps(1), icclink(1), icctrans(1), wtpt(1)
AUTHOR
This manual page was written by Shiju p. Nair <shiju.p@gmail.com>, for the Debian project.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWlcms |
+--------------------+-----------------+
|Interface Stability | Uncommitted |
+--------------------+-----------------+
NOTES
Source for LCMS is available on http://opensolaris.org.
September 30, 2004 JPEGICC(1)