hi gurus,
I am having a file containing a list of tables.i want to find the count of records inside thes tables.
for this i have to connect into database and i have to put the count for all the tables inside another file i used the following loop once all the tablenames are inside the file.
... (1 Reply)
Hi All,
I'm developing a FTP script as below:
ftp -v -n <IP_ADDRESS> << EOF
user avery jSqaqUU2
lcd /directory/folder/
ascii
prompt
mget *
bye
EOF
I would like to enhance the script to count the total file downloaded. For example, once the script run i want the message "Total <n>... (1 Reply)
how to count the total number of lines of all the files under a directory using perl script..
I mean if I have 10 files under a directory then I want to count the total number of lines of all the 10 files contain. Please help me in writing a perl script on this. (5 Replies)
Hi,
I have a script which creates and modifies a csv file.
I have managed to do everything I need to do apart from 1 thing. I need to append a trailer record to the file. I need this line to hold the total of an entire column of the csv file (skipping the 1st line which is a header).
Can... (2 Replies)
Need unix commands to delete records from one file if the same record present in another file...
just like join ... if the record present in both files.. delete from first file or delete the particular record and write the unmatched records to new file..
tried with grep and while... (6 Replies)
Dear all,
I have a directory consisted of files in .jpg, .jpeg etc..all of them are image
20140411030143_62811159403_92886.jpg 5/11/2014 15:01 197K
20140415024737_62811618747_116460.jpg 4/15/2014 14:47 17K
20140415031003_62811618747_109192.jpg 4/17/2014 15:10 17K... (4 Replies)
Hi,
file1.txt
AAA
BBB
CCC
DDD
file2.txt
abc|AAA|AAAabcbcs|fnwufnq
bca|nwruqf|AAA|fwfwwefwef
fmimwe|BBB|fnqwufw|wufbqw
wcdbi|CCC|wefnwin|wfwwf
DDD|wabvfav|wqef|fwbwqfwfe
i need the count of rows of file1.txt present in the file2.txt
required output:
AAA 2 (10 Replies)
Discussion started by: mdkm
10 Replies
LEARN ABOUT HPUX
acctcms
acctcms(1M)acctcms(1M)NAME
acctcms - command summary from per-process accounting records
SYNOPSIS
[options] files
DESCRIPTION
reads one or more files, normally in the form described in acct(4). It adds all records for processes that executed identically-named com-
mands, sorts them, and writes them to the standard output, normally using an internal summary format.
Options
recognizes the following options:
Print output in
ASCII rather than in the internal summary format. The output includes command name, number of times executed, total kcore-
minutes, total CPU minutes, total real minutes, mean size (in K), mean CPU minutes per invocation, ``hog factor'', charac-
ters transferred, and blocks read and written, as in acctcom(1M). Output is normally sorted by total kcore-minutes.
Sort by total
CPU time, rather than total kcore-minutes.
Combine all commands invoked only once under
Sort by number of command invocations.
Any file names encountered hereafter are already in internal summary format.
Process all records as total accounting records.
The default internal summary format splits each field into prime- and non-prime-time parts. This option combines the prime
and non-prime time parts into a single field that is the total of both, and provides upward compatibility with old (i.e.,
UNIX System V) style internal summary format records.
The following options can be used only with the option.
Output a prime-time-only command summary.
Output a non-prime- (offshift) time only command summary.
When and are used together, a combination prime and non-prime time report is produced. All the output summaries are total usage except
number of times executed, CPU minutes, and real minutes which are split into prime and non-prime.
EXAMPLES
A typical sequence for performing daily command accounting and for maintaining a running total is:
WARNINGS
Unpredictable output results if is used on new-style internal-summary-format files, or if it is not used with old style internal summary
format files.
The process mean memory size may overflow for values greater than
SEE ALSO acct(1M), acctcom(1M), acctcon(1M), acctmerg(1M), acctprc(1M), acctsh(1M), fwtmp(1M), runacct(1M), acct(2), acct(4), utmp(4).
STANDARDS CONFORMANCE acctcms(1M)