Append a particular string after occurrence of particular string.
Hi Friends,
Good morning.
Appended a particular string after occurrence of particular string in a file.
my file abc.sql as below
In the given input file Where ever is bbk.createmsg existed in that after second occurrence of ",". Every thing should be appended with tstcre.noconvert().
Hi,
My requirement is that I should search for a particular string and display the string only once if there is more occurrence of the same string in a file.
e.g In the given below log file,the string AMQ5037 comes twice.I want to search for this string and display it only once.grep will... (5 Replies)
Hello Folks..
I need your help ..
here the example of my problem..i know its easy..i don't all the commands in unix to do this especiallly sed...here my string..
dwc2_dfg_ajja_dfhhj_vw_dec2_dfgh_dwq
desired output is..
dwc2_dfg_ajja_dfhhj
it's a simple task with tail... (5 Replies)
Right now, my code is:
s/Secondary Ins./Secondary Ins.\
1/g
It's adding a 1 as soon as it finds Secondary Ins.
Primary Ins.: MEDICARE B DMERC Secondary Ins.
1: CONTINENTAL LIFE INS
What I really want to achieve is having a 1 added on the next line that contain "Secondary Ins." It... (4 Replies)
Hi,
I need to replace and append a string in a text if grep is true. For eg:
grep ABC test.txt | grep -v '\.$' | awk {'print $4'} | sed "s/ ?
How do I replace all instances of "print $4" using sed with another sring? Eg of the string returned will be,
lx123
web222
xyz
Want to... (8 Replies)
Hi ,
I have one file like
BUD,BDL BUDCAR
BUD,BDL BUDLAMP
ABC,CDF,KLT ABISKAR
ABC,CDF,KLT CORNEL
ABC,CDF,KLT KANNAD
JKL,HNM,KTY,KJY JAGAN
JKL,HNM,KTY,KJY HOUSE
JKL,HNM,KTY,KJY KATAK
JKL,HNM,KTY,KJY KOLKA
The o/p should be like
BUD,BDL BUDCAR,BUDLAMP
ABC,CDF,KLT... (4 Replies)
Hi ,
I have a file likeA-0044150|ABC/Frito/
A-0044150|GFHU
A-0150075|Bud Racing
A-0187811|Bud Light
A-0187811|RW&B signmaking
I Want the o/p likeA-0044150|ABC/Frito/,GFHU
A-0150075|Bud Racing
A-0187811|Bud Light,RW&B signmaking (2 Replies)
Hello All,
I want to check if a delimiter is existing twice in a line of a text file.
Suppose flat file is like this
234 | 123
123 | 345
456 | 563 |
234 | 548
So the the 3rd line has two delimiters,
How can we find the lines in such a file having more then one delimiters
I tried... (5 Replies)
Hi All,
I'm trying to insert a string into a file at a specific location.
I'd like to add a string after the parent::__construct(); in my file.
<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Controller extends CI_Controller {
function... (6 Replies)
I apologize if it was asked before but I couldn't find something related.
I want to replace 2 strings in a file
e.g
pwddb=Lar1wod (need to replace string after =)
pwdapp=Wde2xe (need to replace string after =)
AND in same file want to find last occurrence of a string (SR2-134561),... (2 Replies)
Discussion started by: J_ang
2 Replies
LEARN ABOUT DEBIAN
snmp::info::ciscostpextensions
Info::CiscoStpExtensions(3pm) User Contributed Perl Documentation Info::CiscoStpExtensions(3pm)NAME
SNMP::Info::CiscoStpExtensions - SNMP Interface to "CISCO-STP-EXTENSIONS-MIB"
AUTHOR
Carlos Vicente
SYNOPSIS DESCRIPTION
Create or use a subclass of SNMP::Info that inherits this class. Do not use directly.
For debugging you can call new() directly as you would in SNMP::Info
my $stpx = new SNMP::Info::CiscoStpExtensions(...);
Inherited Classes
SNMP::Info
SNMP::Info::Bridge
MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
GLOBAL METHODS
These are methods that return scalar values from SNMP
$stpx->stp_ver()
Returns the particular STP version running on this device. Meant to override SNMP::Info::Brigde::stp_ver()
Values: "pvstPlus", "mistp", "mistpPvstPlus", "mst", "rapidPvstPlus"
("stpxSpanningTreeType")
TABLE METHODS
These are methods that return tables of information in the form of a reference to a hash.
$stpx->mst_config_digest()
Returns the Multiple Spanning Tree (MST) configuration digest
("stpxSMSTConfigDigest")
$stpx->mst_region_name()
Returns the Multiple Spanning Tree (MST) region name
("stpxMSTRegionName")
$stpx->mst_region_rev()
Returns the Multiple Spanning Tree (MST) region name
("stpxSMSTRegionRevision")
$stpx->mst_vlan2instance()
Returns the mapping of vlan to MST instance in the form of a hash reference with key = VLAN id, value = STP instance
$stpx->i_rootguard_enabled()
Returns 1 or 0 depending on whether "RootGuard" is enabled on a given port. Format is a hash reference with key = "ifIndex", value =
[1|0]
("stpxRootGuardConfigEnabled")
$stpx->i_loopguard_enabled()
Returns 1 or 0 depending on whether "LoopGuard" is enabled on a given port. Format is a hash reference with key = "ifIndex", value =
[1|0]
("stpxLoopGuardConfigEnabled")
$stpx->i_bpduguard_enabled()
Returns 1 or 0 depending on whether "BpduGuard" is enabled on a given port. Format is a hash reference with key = "ifIndex", value =
[1|0]
("stpxFastStartPortBpduGuardMode")
$stpx->i_bpdufilter_enabled()
Returns 1 or 0 depending on whether "BpduFilter" is enabled on a given port. Format is a hash reference with key = "ifIndex", value =
[1|0]
("stpxFastStartBpduFilterEnable")
MUNGES
oct2str()
Unpacks H* into a string
perl v5.12.4 2011-09-28 Info::CiscoStpExtensions(3pm)