What I am trying to do is check if the database query returned any records.
If no records returned then output a message else output results to a file.
Right now if I take out the if and else statements the code runs fine and sends the email. If no records returned the email sends the column... (4 Replies)
i have a file named file_names.dat where there are several files along with their path.
exp:
/data1/dir1/CTA_ACD_20071208.dat
/data1/dir1/CTA_DFG_20071208.dat
i want to write a script which will create a csv file with the name of the file and record count of that file
the output file... (4 Replies)
Hello
can someone please advise.
I need to send records in a file that are over 10,000 characters long to a seperate file.
Any ideas?
Thanks (2 Replies)
Hi all
How to verify the number of records in case of delimited file, If the file has records. And then if it is not equal to mentioned no. of records, email is triggered and file is moved to bad directory path.
Example
-----
input file = a.txt
bad directory path : /usr/bin/bad (6 Replies)
recod,amount,noofaccount,count
98,+00000187865779787,00319,000000640/
99,+00000187865779787,00001,000000642/
thsi is my input file my question is
1) Reduce the count on the 98 record by 2 (6 Replies)
Hi ,
I am having a text file with several records., it has a header record and trailer record. The header record has the number of rows (records) found in the text file and time-stamp. The footer record has the total number of records ( along with the header and trailer.,
Suppose:
wc -l... (4 Replies)
Hi all,
I have written a scripts which count number of lines in all the files in a directory and write in a text file. I don't know how to format it while writing. OS suns solaris 10
my scripts is as below
for i in /ersdg3/ERS/ERS_INPUT_LOGS/RIO/LOGS/RIO_02-Aug-2012/ *.LOG
do
echo... (11 Replies)
We have the below records where we need record count of every 30 minute like 00:01 to 00:30 so in that we will have 48 record count in 24 hrs , and also we need sum of record count from 00:01 to 23:30. Please find sample data as well.
00:01 21
00:02 23
00:03 34
00:04 34
00:05 30... (10 Replies)
Discussion started by: nadeemrafikhan
10 Replies
LEARN ABOUT HPUX
mt
mt(1) General Commands Manual mt(1)NAME
mt - magnetic tape manipulating program
SYNOPSIS
tapename] command [count]
Obsolescent
tapename] command [count]
DESCRIPTION
is used to give commands to the tape drive. If tapename is not specified, the environment variable is used; if is not defined, the default
drive is used.
winds the tape in the requested direction (forward or backward), stopping after the specified count EOF marks or records are passed. If
count is not specified, one is assumed. Each EOF mark counts as one record. When winding backwards, the tape always stops at the BOT
marker, regardless of the number remaining in count.
accepts the following commands:
Write count EOF marks.
Forward space
count files.
Forward space
count records.
Backward space
count files.
Backward space
count records.
Rewind tape.
Rewind tape and go offline.
Seek to end of data (DDS and QIC drives only).
Write count setmarks (DDS drives only).
Forward space
count setmarks (DDS drives only).
Backward space
count setmarks (DDS drives only).
Print status information about the tape drive.
Reserve tape drive for sole use by the host issuing the
command (stape or estape driver only).
Release tape drive from sole use by the host issuing the
command (stape or estape driver only).
Spacing operations (back or forward space file or record) leave the tape positioned past the object being spaced to in the direction of
motion. That is, backspacing a file leaves the the tape positioned before the file mark, forward spacing a file leaves the tape positioned
after the file mark. This is consistent with all classical usage on tapes.
WARNINGS
Only raw, no-rewind Berkeley-type devices should be specified. This type of device will not reposition the tape upon close. An example of
such a device is or See mt(7) for more details.
It is possible to wind the tape beyond the EOT marker and off the end of the reel.
A reservation may only be cleared with a release by the host that issued the original reserve. In the event that the host that holds the
reservation is no longer available, the command may be used to reclaim the device by issuing a bus device reset. See st(1M) for more
details.
The reserve/release functionality can only be issued to drives using the or driver.
EXAMPLES
Rewind the tape associated with the device file or (if legacy DSF is disabled):
FILES
Raw magnetic tape interface (stape)
Raw magnetic tape interface (estape)
Default tape interface.
If legacy DSF is disabled, the default value is
AUTHOR
was developed by the University of California, Berkeley.
SEE ALSO dd(1), st(1M), intro(7), mt(7).
mt(1)