Hi, patrick87:
While processing the first file (FNR==NR), if a line begins with ">", grab everything that follows it and store it in p, the pattern name. If a line does not begin with a ">", then it is data for the current pattern, p; append the line to a[p], that pattern's entry in array a. Repeat until done with the first file.
For the second file, we use the pattern name in the first field and the index values in the second and third fields to extract the required substring from a[$1], while incrementing a counter for each pattern name seen, in the i array, i[$1].
My input:
Data name: ABC001
Data length: 1000
Detail info
Data Direction Start_time End_time Length
1 forward 10 100 90
1 forward 15 200 185
2 reverse 50 500 450
Data name: XFG110
Data length: 100
Detail info
Data Direction Start_time End_time Length
1 forward 50 100 50 ... (11 Replies)
Dear all-
I have a requirement to send an email via email with body content which looks something below-
Email body contents
--------------------
RequestType: Update
DateAcctOpened: 1/5/2010
Note that header information and data content should be normal text..
Please advice on... (5 Replies)
Hi all,
I am working on a small prog..
i have a file.txt which contains random data...
K LINES V4 ADD CODE `COMPANY` ADD CODE `DISTRIBUTOR` SEQ NAME^K LINES V5 SEQ NAME^K LINES V6 ADD `PACK-LDATE` SEQ NAME^K^KCOMMAND END^KHEADINFO... (1 Reply)
SUP-TWEAK-LABELS(1) General Commands Manual SUP-TWEAK-LABELS(1)NAME
sup-tweak-labels - batch modification of message state already in index
SYNOPSIS
sup-tweak-labels [options] source ...
DESCRIPTION
Batch modification of message state for messages already in the index.
Supported source URI schemes can be seen by running "sup-add --help".
OPTIONS --add, -a labels
One or more labels (comma-separated) to add to every message from the specified sources (default: )
--remove, -r labels
One or more labels (comma-separated) to remove from every message from the specified sources, if those labels are present (default:
)
--query, -q query
A Sup search query
OTHER OPTIONS --verbose, -v
Print message ids as they're processed
--very-verbose, -e
Print message names and subjects as they're processed
--all-sources
Scan over all sources
--dry-run, -n
Don't actually modify the index. Probably only useful with --verbose
--version
Show version information
--help, -h
Show help message
SEE ALSO sup-mail(1), sup-add(1)AUTHOR
Sup was written by William Morgan <wmorgan-sup@masanjin.net>.
This manual page was written by Per Andersson <avtobiff@gmail.com> for the Debian project (but may be used by others).
April 9, 2012 SUP-TWEAK-LABELS(1)