12-14-2011
Check Sequence
*
Expiry DATE:
*
Address1:
Address2:
Address3:
Address4:
Address5:
*
PO_ref_number: aadad
HolderId_1:
HolderId_2:
HolderId_3:
HolderId_4:
*
adad: 00000
ada: 00000
adad: RANDOM
adad: RANDOM
******************************
* INPUT VARIABLES
******************************
adad:
ada: 621300020985821
ada: 8923401000117943621
ada: 0117943621
******************************
* Oadada
******************************
adad: ada/ada/ada/adad/ada
621300020985821 89234010001179436212 0002 79800474 36831269 F1D86C67 1D84E3FEA7BF3CFB8439A331DC2FC64A
621300020985822 89234010001179436220 0004 74291278 27393700 33BAF502 DA8EA7D6EA2675250E7E23F37CBBE64D
Hi,
I have file as above. I need to check if there is a way to check if the ones in bold are in sequence. the file may contain upto 5000 records and I need to check for sequence for only ones in bold. Please help. (If I can have an answer in awk it will be great since arrays in perl will have performance related issues)
Thanks,
Arun
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
I have a sun sparc system. I don't have a sun keyboard, hence i connected a pc keyboard.
I would like to know the "STOP A" equivalent command to be used on pc keyboard.
Regards,
Raja (4 Replies)
Discussion started by: RajaRC
4 Replies
2. Shell Programming and Scripting
Hi,
if I have a lot of files like (AABBCC0010, AABBCC0011, AABBCC0012....AABBCC1000), can I write a small script to check any sequence number jump and show me the result which sequence number?
#The first sequence may start from 0010 or 0101... :confused:
Thank you!! (10 Replies)
Discussion started by: happyv
10 Replies
3. Shell Programming and Scripting
Hi everyone,
I need help in creating a script that would check if the file sequence is in order in a particular directory. These are log files that are generated throughout the day.
Example of the file name will be, ABC01_YYMMDDHHMM###### (ABC01_0904161829000001)
Sometimes the file... (4 Replies)
Discussion started by: kumaran21
4 Replies
4. Shell Programming and Scripting
Hi,
I have a log file containg records in sequence
<CRMSUB:MSIN=2200380,BSNBC=TELEPHON-7553&TS21-7716553&TS22-7716553,NDC=70,MSCAT=ORDINSUB,SUBRES=ONAOFPLM,ACCSUB=BSS,NUMTYP=SINGLE;
<ENTROPRSERV:MSIN=226380,OPRSERV=OCSI-PPSMOC-ACT-DACT&TCSI-PPSMTC-ACT-DACT&UCSI-USSD;... (17 Replies)
Discussion started by: helplineinc
17 Replies
5. Shell Programming and Scripting
i have an xml tag. The value for the tag should be iterated through out the xml document.
eg:
<data><id><id><name>a</name><addr>aaa</addr><phnumb>3456</phnumb><state>ca</state><city>ny</city></data>... (6 Replies)
Discussion started by: Sgiri1
6 Replies
6. OS X (Apple)
I have a script to check a file sequence for missing frames. It used to work in true Unix but now on OSX 10.6.4 (bash) it reports every frame is missing. Hopefully someone here can help.
#!/bin/csh -f
if ($#argv < 1) then
echo
echo "Usage: checkseq <name> "
echo... (3 Replies)
Discussion started by: scribling
3 Replies
7. Shell Programming and Scripting
Hi all,
I have a file like this
ID 3BP5L_HUMAN Reviewed; 393 AA.
AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3;
DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot.
DT 05-JUL-2004, sequence version 1.
DT 05-SEP-2012, entry version 71.
FT COILED 59 140 ... (1 Reply)
Discussion started by: manigrover
1 Replies
8. Shell Programming and Scripting
I want to listed files every hours and check the missing sequence
my file format is
CV.020220131430.txt
CV.020220131440.txt
CV.020220131450.txt
CV.ddmmyyhhm.txt
how to check if i have missing files in sequence ..
thanks (3 Replies)
Discussion started by: before4
3 Replies
9. Red Hat
If I run rm -rf * command under one parent directory.
/data > rm -rf *
Is there anyway to know which files will be deleted first ?
Start using code tags please, ty. (2 Replies)
Discussion started by: sameermohite
2 Replies
10. Shell Programming and Scripting
Hi All,
I have a requirement that i need to list only the missing sequences with a unix script.
For Example:
Input:
FILE_001.txt
FILE_002.txt
FILE_005.txt
FILE_006.txt
FILE_008.txt
FILE_009.txt
FILE_010.txt
FILE_014.txt
Output:
FILE_003.txt
FILE_004.txt
FILE_007.txt
FILE_011.txt... (5 Replies)
Discussion started by: Arun1992
5 Replies
ADA(4) BSD Kernel Interfaces Manual ADA(4)
NAME
ada -- ATA Direct Access device driver
SYNOPSIS
device ada
DESCRIPTION
The ada driver provides support for direct access devices, implementing the ATA command protocol, that are attached to the system through a
host adapter supported by the CAM subsystem.
The host adapter must also be separately configured into the system before an ATA direct access device can be configured.
COMMAND QUEUING
Command queueing allows the device to process multiple transactions concurrently, often re-ordering them to reduce the number and length of
seeks. ATA defines two types of queueing: TCQ (Tagged Command Queueing, PATA legacy) and NCQ (Native Command Queueing, SATA). The ada
device driver takes full advantage of NCQ, when supported. To ensure that transactions to distant parts of the media, which may be deferred
indefinitely by servicing requests closer to the current head position, are completed in a timely fashion, an ordered transaction is sent
every 7 seconds during continuous device operation.
CACHE EFFECTS
Many direct access devices are equipped with read and/or write caches. Parameters affecting the device's cache are reported in device IDEN-
TIFY data and can be examined and modified via the camcontrol(8) utility.
The read cache is used to store data from device-initiated read ahead operations as well as frequently used data. The read cache is trans-
parent to the user and can be enabled without any adverse effect. Most devices with a read cache come from the factory with it enabled.
The write cache can greatly decrease the latency of write operations and allows the device to reorganize writes to increase efficiency and
performance. This performance gain comes at a price. Should the device lose power while its cache contains uncommitted write operations,
these writes will be lost. The effect of a loss of write transactions on a file system is non-deterministic and can cause corruption. Most
devices age write transactions to limit the vulnerability to a few transactions recently reported as complete, but it is nonetheless recom-
mended that systems with write cache enabled devices reside on an Uninterruptible Power Supply (UPS). The ada device driver ensures that the
cache and media are synchronized upon final close of the device or an unexpected shutdown (panic) event. This ensures that it is safe to
disconnect power once the operating system has reported that it has halted.
SYSCTL VARIABLES
The following variables are available as both sysctl(8) variables and loader(8) tunables:
kern.cam.ada.retry_count
This variable determines how many times the ada driver will retry a READ or WRITE command. This does not affect the number of retries
used during probe time or for the ada driver dump routine. This value currently defaults to 4.
kern.cam.ada.default_timeout
This variable determines how long the ada driver will wait before timing out an outstanding command. The units for this value are sec-
onds, and the default is currently 30 seconds.
kern.cam.ada.spindown_shutdown
This variable determines whether to spin-down disks when shutting down. Set to 1 to enable spin-down, 0 to disable. The default is cur-
rently enabled.
FILES
/dev/ada* ATA device nodes
SEE ALSO
ad(4), ahci(4), cam(4), da(4), siis(4)
HISTORY
The ada driver first appeared in FreeBSD 8.0.
AUTHORS
Alexander Motin <mav@FreeBSD.org>
BSD October 24, 2010 BSD