I've wondered for some time the performance analysis between using sed and awk. say i want to print lines from a very large file. For ex say a file with 100,000 records. i want to print the lines 25,000 to 26,000 i can do so by the following commands:
both will yield the same results but which one is better or is there such a thing ?
Ez all!
I have a question how to decrypt text uses letter frequency analysis. I have code which count the letters, but what i need to do after that. Can anybody help me to write a code. VERY NEEDED! My code now:
#!/usr/bin/awk -f
BEGIN { FS="" }
{
for (i=1; i <= NF; i++) {
if ($i... (4 Replies)
hello experts,
i am trying to replace a line in a 100+mb text file. the structure is similar to the passwd file, id:value1:value2 and so on. using the sed command
sed -i 's/\(123\):\(\{1,\}\):/\1:bar:/' data.txt
works nicely, the line "123:foo:" is replaced by "123:bar:". however, it takes... (7 Replies)
I'm trying to find a way to show large page sizes (page size in K) from multiple web server log files. Essentially I want to show only rows from a file where a specific column is larger than some value. Has anyone ever done this type of log analysis? If so, a snippet of code would be very... (2 Replies)
I'm using sed to do find and replace. But since the file is huge and i have more than 1000 files to be searched, the script is taking a lot of time. Can somebody help me with a better sed command. Below is the details.
Input:
1
1
2
3
3
4
5
5
Here I know the file is sorted.
... (4 Replies)
Hi
Routing tables in a typical linux kernel are implemented using hash data structures. So if the hash table is forced to behave more like a linked list(i.e create chaining) the purpose of using hash is defeated and time complexity increases.
I want to try to assess the performance deterioration... (0 Replies)
Hello
does anyone know of an awk that will extract log file entries between a specific date and time range, eg:
awk '/15\/Dec\/2010:16:10:00/, /15\/Dec\/2010:16:15:00/' access_log
but one that works?
Or a free command line log file analysis tool/script?
I'd like to be able to view... (2 Replies)
I would like to write a shell script that calculated the time difference bettween the log entries. If the time difference is higher as 200 sec. print the complette lines out.
My Problem is, i am unable to jump in the next line and calculate the time difference.
Thank you for your Help.
... (5 Replies)
Dear Guru,
IHAC who complaint that his CentOS is getting performance issue.
I have to help him out of there.
Could you please tell me which tools is better to gathering the whole system performance data?
-- CPU/Memory/IO(disk & Network)/swap
I would like the tools could be... (6 Replies)
Discussion started by: devyfong
6 Replies
LEARN ABOUT HPUX
lpana
lpana(1M)lpana(1M)NAME
lpana - display LP spooler performance analysis information
SYNOPSIS
dest]
DESCRIPTION
displays LP spooler performance information, which system administrators can use to optimize the configuration of the entire spooler sys-
tem.
Options
recognizes one option:
Choose dest as the printer or the class of printers. If dest is a printer, the performance analysis information is dis-
played for that specific printer. If dest is a class of printers, the performance analysis information is displayed
for the printers that are members of the class. By default, displays the performance analysis information for all
printers and/or classes.
examines for the following items:
Average waiting time from when job is spooled until start of printing.
Standard Deviation for waiting time.
Average printing time from start to end of job.
Standard Deviation for printing time.
Average of number of bytes printed per request.
Standard Deviation for number of bytes.
Sum of bytes printed for all requests (in kilobytes).
Total number of requests since logging started.
EXTERNAL INFLUENCES
Environment Variables
determines the language in which messages are displayed.
Setting causes the destination names exceeding 14 characters to be wrapped to multiple lines. This will ensure proper indentation of all
the other displayed fields.
WARNINGS
performs its operation on the local system only.
AUTHOR
was developed by HP.
FILES SEE ALSO lp(1), lpstat(1), lpadmin(1M), lpsched(1M).
lpana(1M)