- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ksh: compare of two outputs ( with a array )
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2014 09:01 AM - edited 04-17-2014 09:02 AM
04-17-2014 09:01 AM - edited 04-17-2014 09:02 AM
ksh: compare of two outputs ( with a array )
hello,
with informations of filesystem of a service guard package (style modular)
i will check the actual mounted filesystems with the output of a service guard package command (cmgetconf).
a filesystem can be mounted but not configured (existing) in a svg package config.
so i have to compare two outputs. i store those outputs in two arrays .
1. parse output of svg package and store it in a array
parse the informations of the fs config of a svg package
( i store it in /tmp/cmgetconf.lst , so no svg command is needed )
grep -E "^fs_name|^fs_directory|^fs_type|^fs_mount_opt|^fs_umount_opt|^fs_fsck_opt" of command.
2. parse output of bdf and grep of svg package ( the vgname include the svg package name)
i stored the "bdf" output in /tmp/bdf.lst
3. compare the two arrays and show the filesystems , which i didn't find in output of svg command.
i find no better way ...
kind regards