Sponsored Content
Full Discussion: Build Stats out of output
Top Forums Shell Programming and Scripting Build Stats out of output Post 302499450 by john_prince on Thursday 24th of February 2011 11:50:22 AM
Old 02-24-2011
It is just giving me the header, no output.

Code:
bash-2.05$ nawk -F: 'BEGIN{fmt="%-50s%-40s%-10s\n"; printf(fmt,"Path","Attribute","Value")}tolower($2)~"nsslapd-accesslog*" {printf(fmt,$1,$2,$3)}' /apps/EIS/dir/slapd-ED/config/dse.ldif
Path                                              Attribute                               Value

---------- Post updated at 08:50 AM ---------- Previous update was at 08:49 AM ----------

The above one was specific to one folder, this is the one which you suggested.

Code:
bash-2.05$ nawk -F: 'BEGIN{fmt="%-50s%-40s%-10s\n"; printf(fmt,"Path","Attribute","Value")}tolower($2)~"nsslapd-accesslog*" {printf(fmt,$1,$2,$3)}' /apps/EIS/dir/slapd-ED/config/dse.ldif
Path                                              Attribute                               Value

 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

I/O Stats Metrics

What do others use for measuring I/O statistics? I'd like something versatile, as in being able to watch (like iostat, but easier to trend), generate load (like iozone, but more realistic), and perform somewhat generalized benchmarks (like bonnie, but more current.) It would scale from a few... (0 Replies)
Discussion started by: LivinFree
0 Replies

2. AIX

system stats

I recieved this out put below soemhow. Unfortunatly I did not write down the command I used to get it. Can someone tell me what command I use to gather these stats? OS = AIX 5.3 64Bit System Model: IBM,7026-6H1 Machine Serial Number:... (2 Replies)
Discussion started by: rocker40
2 Replies

3. AIX

IO Stats

Aix 5.3 I am trying to view the IO stats. I do the sar 5 5 but that is the WIO and si different than the IO stats right? I am just blanking on this. I know there is a command that I used to run that brings up a whole bunch of live stats that run live such as mem and so on just can't rememeber... (4 Replies)
Discussion started by: rocker40
4 Replies

4. UNIX for Advanced & Expert Users

vmstat's cpu stats on first line of output are always the same

Hello, I'm seeing this problem with vmstat, where the first line of output always has the same CPU statistics. For example: neked@nekedmachine:~$ date && vmstat Fri Jul 24 06:57:08 EDT 2009 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd ... (0 Replies)
Discussion started by: neked
0 Replies

5. Shell Programming and Scripting

Using Stats in Php

So, I have a php program that i need to delete ALL files in a directory that are older than a certain age. <?php /* Get file stat */ $stat = stat('/apps/security/ajaba'); This is as far as I've been able to get. I know in shell programming you can easily do something like this. but I'm... (2 Replies)
Discussion started by: SkySmart
2 Replies

6. Linux

Stats on subdirectories

Please help me with a shell script to get the stats on many subdirectories (sub1), (sub2) etc under a mother directory (big) /big | |_______sub1 |_______sub2 |_______sub3 --------- I want to know 1. What is the last file accessed in each subdirectory with date and by whom 2.... (2 Replies)
Discussion started by: digipak
2 Replies

7. UNIX for Dummies Questions & Answers

Adding SDK Build on Kernel Source Build

Hi, So I downloaded this kernel source and was able to build it successfully. But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by itself. I added the SDK in the main Makefile: init-y := init/ #added SDK... (0 Replies)
Discussion started by: h0ujun
0 Replies

8. Shell Programming and Scripting

Build.xml invocation by Build Script

Hi I have a build.xml file and I can run it on Windows via cmd. Now I want to write a script to invoke the same. Is there a way to do this? (1 Reply)
Discussion started by: ankur328
1 Replies

9. Windows & DOS: Issues & Discussions

(VS 2008) New build config looking files from other folder build config

Hi Team, My new build configuration always looking for the files from the build where i copied from. please help me to resolve this. I am using Visual studio 2008.It has Qt 4.8. plugins,qml,C++ development I created new debug_new build configuration with additional preprocessor from the... (1 Reply)
Discussion started by: SA_Palani
1 Replies
cgiwrap_writevf(3)						   cgi/cgiwrap.h						cgiwrap_writevf(3)

NAME
cgiwrap_writevf - a wrapper for vprintf SYNOPSIS
#include <cgi/cgiwrap.h> NEOERR *cgiwrap_writevf (const char *fmt, va_list ap); ARGUMENTS
fmt - standard printf fmt string ap - stdarg argument pointer DESCRIPTION
cgiwrap_writevf is the formatted output command that replaces vprintf or fvprintf(stdout) in a standard CGI It is also used by cgi- wrap_writef (the actual wrapped function is a v type function) RETURN VALUE
None SEE ALSO
cgiwrap_iterenv(3), cgiwrap_putenv(3), cgiwrap_init_emu(3), cgiwrap_writef(3), cgiwrap_init_std(3), cgiwrap_writevf(3), cgiwrap_read(3), cgiwrap_write(3), cgiwrap_getenv ClearSilver 12 July 2007 cgiwrap_writevf(3)
All times are GMT -4. The time now is 07:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy