Hi,
# grep "^Listen" httpd.conf | awk '{print $2}'
FrontEnd_1_IP:8081
FrontEnd_2_IP:8081
8081
8082
8083
#
I need to get the values one at a time but I just can't manage to do that.
Thanks,
Bianca (20 Replies)
In the following code, Im trying to imbed many statements in a single awk statement. But it gives an error on that,
for i in `less usage_types_dwh.txt`
do
cd /u01/app/evident/analysis_lab/usg_type
grep $i svc_type.txt | head -1 | awk 'BEGIN {FS=","} {print $1 "==" $2 ":" $3 ":" $4;... (2 Replies)
I have this input file
0FB7,1083,Synchronized,FriNov121655,2816_7RAID5,05F:1_10F:1,10000000NoneNone,DC_db00p01
0FB7,1150,Split,MonApr180658,2816_7R5GC,N/A,N/A,N/A
06C4,0710,Synchronized,WedMar91105,2816_7RAID5,04E:1_11E:1,10000000NoneNone,DL_nb00p25... (1 Reply)
Hi guys,
i am trying to analyze a text file using awk and am not able to solve this issue.
This is the piece of code that I have written
BEGIN {
## Time to count MACs -> 5 seconds.
TIME_LIMIT = 5;
k = 50000;
}
## For every line.
{
time_in_seconds = $1... (2 Replies)
Hi Gurus,
I am facing a similar issue usiung an awk command. Below is my requirement:
---DATA---
A;F;G
A;D;E
A;D;E
B;Z;P
C;Z;Q
Expected:
A
F<TAB>G
D<TAB>E
D<TAB>E
B
D<TAB>E (1 Reply)
Hi All,
I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command.
The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
On AIX 5.3 and AIX 6.1, I have this script for checking printers being pingable or not.
for i in `lsallq`
do
echo "Queue Name: " $i
echo "----------------------------------------"
for j in `lsallqdev -q $i`
do
echo " Device Name:" $j
hname=`echo... (3 Replies)
OK, so I am trying to use awk as a method of accessing a table stored in a file to then provide the capability of a look up table.
The table is stored in a file named "/Users/jhaney/Desktop/assetTypeMapping.tsv" and looks like this:
aCategory aLetter aNumber
AssetCat1 A 123 ... (10 Replies)
Discussion started by: jhaneyzz
10 Replies
LEARN ABOUT FREEBSD
modinfo
modinfo(1M) System Administration Commands modinfo(1M)NAME
modinfo - display information about loaded kernel modules
SYNOPSIS
/usr/sbin/modinfo [-c] [-w] [-i module-id]
DESCRIPTION
The modinfo utility displays information about the loaded modules. The format of the information is as follows:
Id Loadaddr Size Info Rev Module Name
where Id is the module ID, Loadaddr is the starting text address in hexadecimal, Size is the size of text, data, and bss in hexadecimal
bytes, Info is module specific information, Rev is the revision of the loadable modules system, and Module Name is the filename and
description of the module.
The module specific information is the block and character major numbers for drivers, the system call number for system calls, and unspeci-
fied for other module types.
OPTIONS
The following options are supported:
-c Display the number of instances of the module loaded and the module's current state.
-i module-id Display information about this module only.
-w Do not truncate module information at 80 characters.
EXAMPLES
Example 1: Displaying the Status of a Module
The following example displays the status of module 2:
example% modinfo -i 2
Id Loadaddr Size Info Rev Module Name
2 ff08e000 1734 - 1 swapgeneric (root and swap configuration)
Example 2: Displaying the Status of Kernel Modules
The following example displays the status of some kernel modules:
example% modinfo
Id Loadaddr Size Info Rev Module Name
2 ff08e000 1734 - 1 swapgeneric
4 ff07a000 3bc0 - 1 specfs (filesystem for specfs)
6 ff07dbc0 2918 - 1 TS (time sharing sched class)
7 ff0804d8 49c - 1 TS_DPTBL (Time sharing dispatch table)
8 ff04a000 24a30 2 1 ufs (filesystem for ufs)
9 ff080978 c640 226 1 rpcmod (RPC syscall)
9 ff080978 c640 - 1 rpcmod (rpc interface str mod)
10 ff08cfb8 2031c - 1 ip (IP Streams module)
10 ff08cfb8 2031c 2 1 ip (IP Streams device)
Example 3: Using the -c Option
Using the modinfo command with the -c option displays the number of instances of the module loaded and the module's current state.
example% modinfo -c
Id Loadcnt Module Name State
1 0 krtld UNLOADED/UNINSTALLED
2 0 genunix UNLOADED/UNINSTALLED
3 0 platmod UNLOADED/UNINSTALLED
4 0 SUNW,UltraSPARC-IIi UNLOADED/UNINSTALLED
5 0 cl_bootstrap UNLOADED/UNINSTALLED
6 1 specfs LOADED/INSTALLED
7 1 swapgeneric UNLOADED/UNINSTALLED
8 1 TS LOADED/INSTALLED
9 1 TS_DPTBL LOADED/INSTALLED
10 1 ufs LOADED/INSTALLED
11 1 fssnap_if LOADED/INSTALLED
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO modload(1M), modunload(1M), attributes(5)SunOS 5.10 1 Oct 2002 modinfo(1M)