10-08-2007
I was thinking more along the lines of catching words using a previous run to gauge how far through the job is....I guess parsing is what I am looking for ?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am facing the following issue when using db2. The JDBC prepared statement command is sending an incorrect value to the database for search. I did a truss on the app and here is the log. I want to know what is the value that is getting passed. is it possible.
26867/68: send(62,... (2 Replies)
Discussion started by: buytamil
2 Replies
2. UNIX for Advanced & Expert Users
Hi,
I am parsing a very big file say 10 MB. It 'll take more than an hour ..I want to know the progress say in % .Is there any way to do that???
or
(Is there any way to know which line of the file I am in ) (2 Replies)
Discussion started by: sakthi.abdullah
2 Replies
3. HP-UX
Hi,
Is there any way to find the mode of the binary file (debug or release) by analyzing the core file generated by that binary on the HPUX11i Platform? (5 Replies)
Discussion started by: Prajakta
5 Replies
4. UNIX for Dummies Questions & Answers
I'm not sure if this query is relevant to this forum but here goes anyways...
I want analyse log files that do not appear to be of standard format. I have tried using Analog but cannot config it to read the files.
Does anyone have any advice on working with log files taken from a Unix... (6 Replies)
Discussion started by: Sepia
6 Replies
5. Solaris
Friends
I was trying to analyse a core dump using pstack command in Sol5.9(Sparc)
The output is as below.
root: pstack core_mumux211_istauth_220_108_1229517198_21922
core 'core_mumux211_istauth_220_108_1229517198_21922' of 21922: istauth
fe1afbb8 ttcdrv (c10e0, c1db4, 30ad8, bc950, 0, 0)... (1 Reply)
Discussion started by: efunds
1 Replies
6. Shell Programming and Scripting
Hello,
I have a list of e-mails. I need to know, which email-s from that list not use. I want to do this things:
- take email address from email list
- find this address in mail logs
- if, there is no record about this e-mail adress in list, show this e-mail address on screen
I did... (0 Replies)
Discussion started by: naezdnik
0 Replies
7. Shell Programming and Scripting
Hi guys I want to create a script which will show the amount of data that is been copied from one location to another location.
For example:
Say i have a file called abc.img which is approximately 4 gb of size therfore everytime i copy the file from one location to another i want a progress bar... (3 Replies)
Discussion started by: pinga123
3 Replies
8. Shell Programming and Scripting
Hi,
I have below type of data in a text file in unix.
Emp_Name Emp_Dept
Raj 101
Amruta 100
Shilpa 100
Rohit 123
Amol 198
Rosh 101
Gaurav 198
Number of employees can be even more.
Need a command or a... (2 Replies)
Discussion started by: rajneesh_kapoor
2 Replies
9. AIX
Dear Experts,
Am using nmon analyser version 3.3g, and when i tried analyzing my current nmon file it was done successfully. But the problem is all my old nmon files are compressed. So i uncompressed and analyzed using the same analyzer. but got this error
no valid input data! nmon run may... (8 Replies)
Discussion started by: jayadeava
8 Replies
10. Shell Programming and Scripting
Attached is the log file that I have generated through the following script:
last | head -2 |sed '2q;d' |awk '{ print $1"\t"$2"\t"$3"\t\t"$4"\t"$5"\t"$6"\t"$7"\t"$8"\t" $9"\t"$10"\t"$11}'>>/var/log/logadmin/logtest.txt
But now I'm unable to run the following operations on it:
1. Count... (1 Reply)
Discussion started by: Lionking93
1 Replies
LEARN ABOUT NETBSD
progress
PROGRESS(1) BSD General Commands Manual PROGRESS(1)
NAME
progress -- feed input to a command, displaying a progress bar
SYNOPSIS
progress [-ez] [-b buffersize] [-f file] [-l length] [-p prefix] cmd [args ...]
DESCRIPTION
The progress utility opens a pipe to cmd and feeds an input stream into it, while displaying a progress bar to standard output. If no file-
name is specified, progress reads from standard input. Where feasible, progress fstat(2)s the input to determine the length, so a time esti-
mate can be calculated.
If no length is specified or determined, progress simply displays a count of the data and the data rate.
The options are as follows:
-b buffersize
Read in buffers of the specified size (default 64k). An optional suffix (per strsuftoll(3)) may be given.
-e Display progress to standard error instead of standard output.
-f file Read from the specified file instead of standard input.
-l length Use the specified length for the time estimate, rather than attempting to fstat(2) the input. An optional suffix (per
strsuftoll(3)) may be given.
-p prefix Print the given ``prefix'' text before (left of) the progress bar.
-z Filter the input through gunzip(1). If -f is specified, calculate the length using gzip -l.
EXIT STATUS
progress exits 0 on success.
EXAMPLES
The command
progress -zf file.tar.gz tar xf -
will extract the file.tar.gz displaying the progress bar as time passes:
0% | | 0 0.00 KiB/s --:-- ETA
40% |******** | 273 KiB 271.95 KiB/s 00:01 ETA
81% |*********************** | 553 KiB 274.61 KiB/s 00:00 ETA
100% |*******************************| 680 KiB 264.59 KiB/s 00:00 ETA
If it is preferred to monitor the progress of the decompression process (unlikely), then
progress -f file.tar.gz tar zxf -
could be used.
The command
dd if=/dev/rwd0d ibs=64k |
progress -l 120g dd of=/dev/rwd1d obs=64k
will copy the 120 GiB disk wd0 (/dev/rwd0d) to wd1 (/dev/rwd1d), displaying a progress bar during the operation.
SEE ALSO
ftp(1), strsuftoll(3)
HISTORY
progress first appeared in NetBSD 1.6.1. The dynamic progress bar display code is part of ftp(1).
AUTHORS
progress was written by John Hawkinson <jhawk@NetBSD.org>. ftp(1)'s dynamic progress bar was written by Luke Mewburn.
BUGS
Since the progress bar is displayed asynchronously, it may be difficult to read some error messages, both those produced by the pipeline, as
well as those produced by progress itself.
BSD
June 6, 2007 BSD