Sponsored Content
Full Discussion: If not ...then
Top Forums Shell Programming and Scripting If not ...then Post 99006 by Ygor on Monday 13th of February 2006 09:09:49 PM
Old 02-13-2006
This is GNU sed ...
Code:
$ cat file1
FE-Router:MN-Menu:SV-SvcMenu:SV-SvcStop:AC-Lkup:AC-StNumQry:AC-Elig:SV-GetZipCode:SV-GetAddress:SV-GetSecondary:SV-ConfStreetAddress:FE-XferCSR
FE-Router:MN-Menu:BP-FinStatus:AC-Lkup:AC-PhNumLkup:AC-AcNumLkup:AC-StNumQry:AC-Elig:BP-FinStatus2:BP-OtherPymt:FE-XferCSR
FE-Router:OR-Menu1

$ sed -r -e 's/(FE|MN)-[^:]*/:/g'  -e 's/:*([^:]*).*/\1/' file1
SV-SvcMenu
BP-FinStatus
OR-Menu1

 
LedgerSMB::DBObject::Menu(3pm)				User Contributed Perl Documentation			    LedgerSMB::DBObject::Menu(3pm)

NAME
LedgerSMB::DBObject::Menu - Menu Handling Back-end Routines for LedgerSMB SYNOPSIS
Provides the functions for generating the data structures for the LedgerSMB menu. COPYRIGHT
Copyright (c) 2007 The LedgerSMB Core Team. Licensed under the GNU General Public License version 2 or at your option any later version. Please see the included COPYRIGHT and LICENSE files for more information. METHODS
new() Inherited from LedgerSMB::DBObject. Please see that documnetation for details. generate() This function returns a list of menu items. Each list item is a hashref: keys %menu_item would return the equivalent of qw(position id level label path args). Returns the complete list and sets $menu->{menu_items} to a referene to th result set, This function does not return an entry for the top-level menu. generate_section() This class acts like Menu::Generate except it returns only a cross-section of the menu. Basically it returns all nodes which are direct children below $object->{parent_id}. will_expire_soon() This method returns true if the user's password will expire soon (within the next week). Copyright (C) 2007 The LedgerSMB Core Team Licensed under the GNU General Public License version 2 or later (at your option). For more information please see the included LICENSE and COPYRIGHT files. perl v5.14.2 2012-03-25 LedgerSMB::DBObject::Menu(3pm)
All times are GMT -4. The time now is 03:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy