05-28-2012
Thanks againn for your time and effort Jay. I tried the above but I am still not able to get the correct output. I tried to modify it a bit but to no avail. When I tried with more than a detail/traler pair for example with 6 files i.e 3 detail files and their respective trailer file ,I got everthing in one file. If there are 6 files after I run the script I shoud have only 3 files left in the directory and each one should have the contents of the respective trailer that was deleter appended to it.
-----Once the appending and/or merging of each pair of files is done the trailer files are deleted.
---------- Post updated 05-28-12 at 11:03 AM ---------- Previous update was 05-27-12 at 04:28 PM ----------
I figure out another alternative. Thanks again.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a folder called {homedata}
Within this folder there are 12 subfolders 200601.......200612
Within each subfolder there are 8 sets of files
Each filename commences with A B C D E F G or H,
so {filename}* can be used.
I am trying to write a script which will from the top level
go... (1 Reply)
Discussion started by: grinder182533
1 Replies
2. Shell Programming and Scripting
Please let me know.. How to manipulate the data from two files..?
I have two files, file1 has two columns one is variable and second is description. file2 has five columns first column is variable and last one is description..Appreciate the help
I need to overwrite the description from file1... (5 Replies)
Discussion started by: ddk2oo5
5 Replies
3. Shell Programming and Scripting
Hello,
I have mysql binary file which logs all the database queries and i to insert all queries log in to database. First i coverted binary file to text file. and start playing with it. Text file contains following queries, some samples are,
SET INSERT_ID=1;
INSERT INTO test... (0 Replies)
Discussion started by: mirfan
0 Replies
4. Shell Programming and Scripting
I don't know if this is a big issue or not, but I'm having difficulties. I apoligize for the upcoming essay :o.
I'm writing a script, similar to a paint program that edits images, but in the form of ANSI block characters. The program so far is working. I managed to save the image into a file,... (14 Replies)
Discussion started by: tinman47
14 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am looking for an awk script which should help me to meet the following requirement:
File1 has records in following format
INF: FAILEd RECORD AB1234
INF: FAILEd RECORD PQ1145
INF: FAILEd RECORD AB3215
INF: FAILEd RECORD AB6114
............................ (2 Replies)
Discussion started by: mintu41
2 Replies
6. UNIX for Dummies Questions & Answers
Hi all!
my first post here, so mods -- if this should ideally be in the scripts section, please move there. Thanks!
I have data in the following format:
key1:value1 key2:value2 key3:value3
A
B
C
D
key1:value4 key2:value5 key3:value6
A1
B1
key1: ...
and so on
I want an output... (2 Replies)
Discussion started by: gnat01
2 Replies
7. Shell Programming and Scripting
Hi ,
I have a simple text file with contents as below:
12345678900 971,76 4234560890
22345678900 5971,72 5234560990
32345678900 71,12 6234560190
the new csv-file should be like:
Column1;Column2;Column3;Column4;Column5
123456;78900;971,76;423456;0890... (9 Replies)
Discussion started by: FreddyDaKing
9 Replies
8. Shell Programming and Scripting
Y,T,,H05,6,6,0,0 -> TH05_6
D,5,BT,B -> BT_KIOSK
P,KQC222 -> KQC222
G,B,2 -> BRANI_GATE_2
fileA
TPM658 Y,T,,H05,6,6,0,0
TPM110 D,5,BT,B
TPM136 P,KQC222
TPM180 P,BQC913
TPM575 Y,B,,T05,14,14,0,0
IPM760 G,B,2
TPM011
I need to use second column
$1,$2,$3,$4.....
if first char... (6 Replies)
Discussion started by: ment0smintz
6 Replies
9. Shell Programming and Scripting
Hi,
I am confused how to proceed firther please find the problem below:
Input Files:
DCIA_GEOG_DATA_OCEAN.TXT
DCIA_GEOG_DATA_MCRO.TXT
DCIA_GEOG_DATA_CVAS.TXT
DCIA_GEOG_DATA_MCR.TXT
Output File Name: MMA_RFC_GEOG_NAM_DIM_LOD.txt
Sample Record(DCIA_GEOG_DATA_OCEAN.TXT):(Layout same for... (4 Replies)
Discussion started by: Arun Mishra
4 Replies
10. Shell Programming and Scripting
Hi,
I have a file about 100 lines. Each line is about 2000 characters (each line is fixed length). In middle of each line is following constant value
0000040029892586
Now, I want to go through each line and increment by 1.
So, line 1 will have 586
line 2 will have 587, line 3 will have... (4 Replies)
Discussion started by: jakSun8
4 Replies
LEARN ABOUT SUSE
image::exiftool::afcp
Image::ExifTool::AFCP(3) User Contributed Perl Documentation Image::ExifTool::AFCP(3)
NAME
Image::ExifTool::AFCP - Read/write AFCP trailer
SYNOPSIS
This module is used by Image::ExifTool
DESCRIPTION
This module contains definitions required by Image::ExifTool to extract information from the AFCP trailer. Although the AFCP specification
is compatible with various file formats, ExifTool currently only processes AFCP in JPEG images.
NOTES
AFCP is a specification which allows meta information (including IPTC) to be appended to the end of a file.
It is a poorly designed protocol because (like TIFF) it uses absolute offsets to specify data locations. This is a huge blunder because it
makes the AFCP information dependent on the file length, so it is easily invalidated by image editing software which doesn't recognize the
AFCP trailer to fix up these offsets when the file length changes. ExifTool will attempt to fix these invalid offsets if possible.
Scanning for AFCP information may be time consuming, especially when reading from a sequential device, since the information is at the end
of the file. In these instances, the ExifTool FastScan option may be used to disable scanning for AFCP information.
AUTHOR
Copyright 2003-2010, Phil Harvey (phil at owl.phy.queensu.ca)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
REFERENCES
<http://www.tocarte.com/media/axs_afcp_spec.pdf>
SEE ALSO
"AFCP Tags" in Image::ExifTool::TagNames, Image::ExifTool(3pm)
perl v5.12.1 2010-01-04 Image::ExifTool::AFCP(3)