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)
HI ,
I am new to shell scripting ,
I have a requirement that
I send a file for data quality ( original.csv) & i will be getting 4 files daily into a particular directory in return with cleansed data .
the files may be clean.csv,
unclean.csv ,
... (2 Replies)
Hello Gurus,
We have a requirement to count the valid number of records in a comma delimited file with double quotes.
The catch here is..few records have a new line carriage within the double quotes,,say for ex:we have a file called accounts the record count is 4827..but the actual valid count... (5 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)
Hi all this is a UNIX question.
I have a large flat file with millions of records.
col1|col2|col3
1|a|b
2|c|d
3|e|f
3|g|h
footer****
I am supposed to calculate the sum of col1 1+2+3+3=9, count of col1 1,2,3,3=4, and distinct count of col1 1,2,3=c3
I would like it if you avoid... (4 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)
HI,
I need to print the record count of a file using shell script.
If the record count of a file excluding header and trailer record if greater than zero then print 'Record count of a file is xxxx records'.
If the record count is zero print 'zero records'
Thanks
Mahendra (1 Reply)
Hi,
I have a .dat file with contents like the below:
Input file
============SEQ NO-1: COLUMN1==========
9835619
7152815
============SEQ NO-2: COLUMN2 ==========
7615348
7015548
9373086
============SEQ NO-3: COLUMN3===========
9373086
Expected Output: (I just... (1 Reply)
Hi All ,
We need one help on the below requirement.We have multiple pipe delimited .txt file(around 100 .txt files) present on one directory.We need the total record count of all the files present in that directory without header.File format as below :
... (8 Replies)
Discussion started by: STCET22
8 Replies
LEARN ABOUT DEBIAN
uptimed
UPTIMED(8) System Manager's Manual UPTIMED(8)NAME
uptimed - daemon to record uptime records
SYNOPSIS
uptimed [ -?bv ] [ -e <email> ] [ -i <interval> ] [ -m <count> ]
DESCRIPTION
This manual page documents the uptimed program.
uptimed is a daemon that records statistics about a machine's uptime. Use the uprecords(1) program to get uptime record statistics.
OPTIONS
These command-line options override settings in the configuration file /etc/uptimed.conf
-? Show usage
-b Create bootid and exit. This option is ignored on BSD systems, because the BSD kernel keeps a static boot time variable in memory so
Uptimed does not need to cache this value.
-p <file>
Write PID to pidfile <file>
-e <email>
Send mail to <email> at milestones/records
-i <interval>
Use <interval> seconds for loop
-m <count>
Log a maximum of <count> entries
-t <timespec>
Set the minimum uptime to be considered a record
-v Show version information
SEE ALSO uprecords(1)AUTHOR
Rob Kaper <cap@capsi.com>.
This manual page was written by Alan Ford <alan@whirlnet.co.uk>, for the Debian GNU/Linux system (but may be used by others). It was last
modified for uptimed version 0.3.7.
May 28, 2004 UPTIMED(8)