01-03-2011
Script logic
Please help me to write the following script.
1) Input files will be in Test directory. (Test/YYYY/MM) folders (Ex: 1) 2010/ 01 2) 2011/05)
The file name will be Testfile1_6676543218_Axxxxxxyyyyyzzzzzzzzzzzzzzzzzz.pdf.gz
2) The compare file will be in /tmp directory. (/tmp/comparefile.txt). The file will have list of 6 digit numbers. Ex:
(001234
015678
045679)
3) The batch has to compare 6 digit numbers in the compare file and 6 digit numbers in PDF file (xxxxxx - position 23 - 28) in the Test directory folders(Current month - Previous months). If it matches, then copy the pdf file to the new folder.
1) Conditions: It has to look for (Current month - Previous months) folder. Previous month should read from the property file. It can be either (01 ....12 months)
Ex: if Current month - 01 2011 and Previous month - 06 2010 then batch has to look since Aug 2010 to Jan 2011 ) folder
Thanks
2 More Discussions You Might Find Interesting
1. Solaris
Hi,
i have a file which contains names of persons and date as below.
peter 27-mar
Vicky 08-sep
Saryu 03-jan
venki 14-dec
.....
...
can someone plz provide a script logic, which returns the Name of the person whose date is matching with current date. (5 Replies)
Discussion started by: JSKOBS
5 Replies
2. Shell Programming and Scripting
i have two csv files (rates.csv, reference.csv) as below.
rates.csv contains Code, respective Zone details
rates.csv
----------
23,38Nhava
45,37NEWYORK
89,SHILANG
71,ROBACCA
reference.csv contains all Zone details
reference.csv
-------------
37Newyork
robacca
38Nhava... (5 Replies)
Discussion started by: p_satyambabu
5 Replies
LEARN ABOUT DEBIAN
merge_fonts
merge_fonts(3alleg4) Allegro manual merge_fonts(3alleg4)
NAME
merge_fonts - Merges two fonts into one font. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
FONT *merge_fonts(FONT *f1, FONT *f2)
DESCRIPTION
This function merges the character ranges from two fonts and returns a new font containing all characters in the old fonts. In general, you
cannot merge fonts of different types (eg, TrueType fonts and bitmapped fonts), but as a special case, this function can promote a mono-
chrome bitmapped font to a color font and merge those. Example:
FONT *myfont;
FONT *myfancy_font;
FONT *lower_range;
FONT *upper_range;
FONT *capitals;
FONT *combined_font;
FONT *tempfont;
...
/* Create a font that contains the capitals from */
/* the fancy font but other characters from myfont */
lower_range = extract_font_range(myfont, -1, 'A'-1);
upper_range = extract_font_range(myfont, 'Z'+1, -1);
capitals = extract_font_range(myfancy_font, 'A', 'Z');
tempfont = merge_fonts(lower_range, capitals);
combined_font = merge_fonts(tempfont, upper_range);
/* Clean up temporary fonts */
destroy_font(lower_range);
destroy_font(upper_range);
destroy_font(capitals);
destroy_font(tempfont);
RETURN VALUE
Returns a pointer to the new font or NULL on error. Remember that you are responsible for destroying the font when you are finished with it
to avoid memory leaks.
SEE ALSO
extract_font_range(3alleg4), is_trans_font(3alleg4), is_color_font(3alleg4), is_mono_font(3alleg4), exfont(3alleg4)
Allegro version 4.4.2 merge_fonts(3alleg4)