I have many text file reports generated by a Information Assurance tool that I need to get into a .CSV format or Excel tab delimited format. I want to use sed or awk to grab all the information in the sample text file below and create column headings:Risk ID, Risk Level, Category, Description, How... (5 Replies)
I need help to split a filename 'a0crk_user:A0-B0123$#%test' into a0crk_user and A0-B0123 and print the output under 2 different columns namely
User and Status.
for eg. the output should like below:
User Status
---- ------
a0crk_user A0-B0123 (3 Replies)
Hello,
I'm rather new to the world of regular expressions and sed, though am excited by its possibilities. I have a particular task I'd like to achieve, and have googled the topic quite a bit. However, having found some codes that perform a task very similar to what I'd like to do, I can't for... (2 Replies)
Hi, Iam new to unix. I have one input file .
Input file :
ID1~Name1~Place1
ID2~Name2~Place2
ID3~Name3~Place3
I need output such that only first column should change to fixed width column of 15 characters of length.
Output File:
ID1<<12 spaces>>Name1~Place1
ID2<<12... (5 Replies)
Hi all,
I need your help in adding column headings in the below report.
The headings I want are:
Count - Host - Message Type
The command used to create the report is as follows:
for messages in `cat syslog_message_list.txt`
do
grep $messages syslog.`date +%d%m%y`.log | awk '{print $4 " " "... (4 Replies)
Match column 3 in file1 to column 1 in file 2 and replace with column 2 from file2
file 1 sample
SNDK 80004C101 AT
XLNX 983919101 BB
NETL 64118B100 BS
AMD 007903107 CC
KLAC 482480100 DC
TER 880770102 KATS
ATHR 04743P108 KATS... (7 Replies)
Hi all,
I have a file with 3 columns separated by space. Each column has a heading. I want to sort according to the values in the 2nd column (ascending order).
Ex.
Name rank direction
goory 0.05 --+
laby 0.0006 ---
namy 0.31 -+-
....etc.
Output should be
Name rank direction
laby... (3 Replies)
HI I am executing faloowing commands.
mr batch_1 > my_temp.txt ;
mr batch_2 >>my_temp.txt;
mr batch_3 >> my_temp.txt;
mr batch_4 >> my_temp.txt;
and the out put file is as this
cat my_temp.txt
Machine Name Max Load Current Load Factor O/S Status... (3 Replies)
This is my input file :
# cat list 20130430121600, cucm, location,76,2 20130430121600,cucm1,location1,76,4 20130430122000,cucm,location,80,8 20130430122000,cucm1,location1,90,8 20130430140000,cucm1,location1,87,11 20130430140000, cucm,location,67,9
This is the required output
... (1 Reply)
Hi all, I have a report that looks like this:
-------------------------------------------------
-- AOC - XXXXXXX --
-------------------------------------------------
Thread Last Sequence Received Last Sequence Applied Difference
----------... (12 Replies)
Discussion started by: cougartrace
12 Replies
LEARN ABOUT HPUX
lanscan
lanscan(1M)lanscan(1M)NAME
lanscan - display LAN device configuration and status
SYNOPSIS
Remarks
The and commands are deprecated. See for more information.
DESCRIPTION
displays the following information about each LAN device that has software support on the system:
o Hardware Path.
o Active Station Address (also known as Physical Address).
o Card Instance Number
o Hardware State.
o Network Interface "NamePPA". The Network Interface "Name" and the "PPA" (Physical Point of Attachment) number are concatenated
together. A single hardware device may have multiple "NamePPA" identifiers, which indicates multiple encapsulation methods may
be supported on the device. For Ethernet/IEEE 802.3 links, the "Name" is used to designate Ethernet encapsulation, and for IEEE
802.3 encapsulation. For other links (FDDI, Token Ring), only the encapsulation designation is used.
o Network Management ID.
o MAC Type.
o HP DLPI Supported. Indicates whether or not the lan device driver will work with HP's Common Data Link Provider Interface.
o DLPI Major Number.
o Extended Station Address for those interfaces which require more than 48 bits. This is displayed only when the option is
selected.
o Encapsulation Methods that the Network Interface supports. This is displayed only when the option is selected.
Options
recognizes the following command-line options:
Display station addresses only. No headings.
Display interface names only. No headings.
Display information about PPAs that are acquired by APA.
No headings.
Display MAC types only. No headings.
Display Network Managements IDs only. No headings.
Display PPA numbers only. No headings.
Same as except link aggregate PPA's will be followed by a list of LAN interface PPA's that are configured in the corresponding link
aggregate. No headings.
Verbose output. Two lines per interface. Includes displaying of extended
station address and supported encapsulation methods.
WARNINGS
does not display information about LAN devices that do not have software support such as LAN interface cards that fail to bind properly at
boot-up time.
Obsolescence
The and commands are deprecated. These commands will be removed in a future HP-UX release. HP recommends the use of replacement command
nwmgr(1M) to perform all network interface-related tasks.
AUTHOR
was developed by HP.
SEE ALSO ifconfig(1M), ioscan(1M), nwmgr(1M), lanadmin(1M), linkloop(1M), lan(7).
TO BE OBSOLETED lanscan(1M)