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
Please see the script below
for file in ${filelist
}; do
if ]; then
if ]; then
print " $(date) STEP 6 ------- Copying $file to $destpath"
fi
if ! cp $ftppath/$file $destpath 2> /dev/null; then
writeToLog "ERROR: ${0##*/} - $upartition Could not copy file $file"
if ]; then... (1 Reply)
Hello,
I've got next problem:
I want to examine at the beginning of a script in an if loop that:
1. Is there 4 parameters given
2. If first state is true then: is there switches -e and -d?
3. At the end, how can i indentify them as variebles regardlees to its order.
I was thinking like... (2 Replies)
Hi,
I have one text file and zip file in UNIX directory.The Zip file contains another text file.
For Ex:
Text File Name = Req_file.txt
Zip file Name= Response_file.txt_04072009_121548.gz
Zip file contains one text file that name is Response_file.txt
I want to compare the record... (1 Reply)
I am trying to execute the following command to check the existance of a file (which has a date timestamp on it). If there are more than one file, then also it should give me 'success' result.
if
then
<do some work>
else
<no files>
fi
Since there are more than one... (18 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)
Hi all,
If i would like to process a file input as below:
col1 col2 col3 ...col100
1 A C E A ...
3 D E G A
5 T T A A
6 D C A G
how can i perform a for loop to count the occurences of letters in each column? (just like uniq -c ) in every column.
on top of that, i would also like... (8 Replies)
Hi,
Very good wishes to all!
Please help to provide the shell script for generating the record counts in filed wise from the .csv file
My question:
Source file:
Field1 Field2 Field3
abc 12f sLm
1234 hjd 12d
Hyd 34
Chn
My target file should generate the .csv file with the... (14 Replies)
Hello,
I have a file with below content - Example
3
6
69
139
210
345
395
418
490
492
I would like the result as - Multiple of 70 or nearest number in the file less than the multiple of 70
69
139 (5 Replies)
Hello,
For our work we use several scripts to gather/combine data for use in our webshop. Untill now we did not had any problems but since a couple days we noticed some mismatches between imports.
It happened that several barcodes where matched even though it was a complete other product. Of... (19 Replies)
Discussion started by: SDohmen
19 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)