Could you please try following and let me know if this helps you. Also please do mention all requirements in case this doesn't match your requirement with sample Input_file and sample Output too.
Thanks,
R. Singh
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)
i use unix command to take the record count for a file1
awk 'END{print NR}' filename
i already have a file2 which conatin the count like
...
..
rec_cnt=100
..
..
I want to replace the record in the file2 using the record i take from file1.
suggest me some simple ways of doing it... (2 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)
Anyone knows how to use AWK to achieve the following
Sun Feb 12 00:41:01-00:41:59 Success:2 Fail:2
Sun Feb 12 00:42:01-00:42:59 Success:1 Fail:2
Sun Feb 12 01:20:01-01:20:59 Success:1 Fail:2
Mon Feb 13 22:41:01-22:41:59 Success:1 Fail:1
log file:
Success
Success
Fail
Fail
... (9 Replies)
Hi, I've been trying to develop a script that performs the parsing of a log every 1 minute and then generating some statistics. I'm fairly new to programming and this is why I come to ask if I can lend a hand.
this is my log:
xxxx 16/04/2012 17:00:52 - xxxx714 - E234 - Time= 119 ms.... (8 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)
Discussion started by: guddu_12
11 Replies
LEARN ABOUT PHP
yaz_set_option
YAZ_SET_OPTION(3) 1 YAZ_SET_OPTION(3)yaz_set_option - Sets one or more options for connectionSYNOPSIS
void yaz_set_option (resource $id, string $name, string $value)
DESCRIPTION
void yaz_set_option (resource $id, array $options)
Sets one or more options on the given connection.
PARAMETERS
o $id
- The connection resource returned by yaz_connect(3).
o $name or $options
- May be either a string or an array. If given as a string, this will be the name of the option to set. You'll need to give it's
$value. If given as an array, this will be an associative array (option name => option value).
PHP/YAZ Connection Options
+----------------------+---------------------------------------------------+
| Name | |
| | |
| | Description |
| | |
+----------------------+---------------------------------------------------+
| implementationName | |
| | |
| | implementation name of server |
| | |
|implementationVersion | |
| | |
| | implementation version of server |
| | |
| implementationId | |
| | |
| | implementation ID of server |
| | |
| schema | |
| | |
| | schema for retrieval. By default, no schema is |
| | used. Setting this option is equivalent to using |
| | function yaz_schema(3) |
| | |
|preferredRecordSyntax | |
| | |
| | record syntax for retrieval. By default, no syn- |
| | tax is used. Setting this option is equivalent to |
| | using function yaz_syntax(3) |
| | |
| start | |
| | |
| | offset for first record to be retrieved via |
| | yaz_search(3) or yaz_present(3). First record is |
| | numbered has a start value of 0. Second record |
| | has start value 1. Setting this option in combi- |
| | nation with option count has the same effect as |
| | calling yaz_range(3) except that records are num- |
| | bered from 1 in yaz_range(3) |
| | |
| count | |
| | |
| | maximum number of records to be retrieved via |
| | yaz_search(3) or yaz_present(3). |
| | |
| elementSetName | |
| | |
| | element-set-name for retrieval. Setting this |
| | option is equivalent to calling yaz_element(3). |
| | |
+----------------------+---------------------------------------------------+
o $value
- The new value of the option. Use this only if the previous argument is a string.
RETURN VALUES
No value is returned.
PHP Documentation Group YAZ_SET_OPTION(3)