Hi All,
How do i remove the spaces in between, the outputted result: my output is like below and i dont want spaces between them, how do i do that. I am enclosing the peice of code that does that:-
if ; then
$ECHO "The Path is:" $OFFERING_FILE_PATH/$z
$ECHO $Z
else
$ECHO ""
fi... (10 Replies)
Hello
I have a file with data something like this in it :
texttexttext "text .lst" TEXT=" text "
texttexttext "moretext .lst" TEXT=" text "
Question is how do I get rid of space so that the files looks like this :
texttexttext "text.lst" TEXT="text"
texttexttext... (8 Replies)
I have a customer file now and would like to separate the names into two cells in a spreadsheet. Here is my data as an example:
SHAWN R KEEGAN
shawn r scroggin
Shawn Regan
Shawn Reilly
The first two have the middle initial so I'd like to include them in the "first name" field and the last... (11 Replies)
Hi Guys,
I want remove starting space of each line ...
My Input:
A B C D E
C V F G H
F R T Y U
D F G H J
L O I U Y G P O
K O P L O
L O I P
P O P
P P P P
My Output:
A B C D E
C V F G H (7 Replies)
I created a awk state to calculate the number of success however when the query runs it has a leading zero. Any ideas on how to remove the leading zero from the calculation?
Here is my query:
cat myfile.log | grep | awk '{print $2,$3,$7,$11,$15,$19,$23,$27,$31,$35($19/$15*100)}'
02:00:00... (1 Reply)
Hello,
I need help. I have xml file and there are one extra space on number <EpiReference>1 42345</EpiReference>. And of cource, the value change on every new file. I need remove space from that value what is in between <EpiReference> and </EpiReference>. How I can do that?
This are example... (9 Replies)
using python 3 when i run this code to get the urls i get a space in the url
how do i remove the space after the last /
thanks
# Import libraries
import requests
from bs4 import BeautifulSoup
# Connect to the URL
page = requests.get('https://www.meihoski.co.jp/movie/')
soup... (3 Replies)
Discussion started by: bob123
3 Replies
LEARN ABOUT CENTOS
netsnmp::oid
OID(3) User Contributed Perl Documentation OID(3)NAME
NetSNMP::OID - Perl extension for manipulating OIDs
SYNOPSIS
use NetSNMP::OID;
my $oid = new NetSNMP::OID('sysContact.0');
if ($oid < new NetSNMP::OID('ifTable')) {
do_something();
}
my @numarray = $oid->to_array();
# appending oids
$oid = new NetSNMP::OID('.1.3');
$oid += ".6.1";
# -> .1.3.6.1
# appending index strings
$oid2 = $oid + ""wes"";
# -> .1.3.6.1.3.119.101.115
$oid3 = $oid + "'wes'";
# -> .1.3.6.1.119.101.115
$len = $oid3->length();
# -> 7
# retrieving indexes from an oid:
$arrayref = $tableoid->get_indexes()
DESCRIPTION
The NetSNMP::OID module is a simple wrapper around a C-based net-snmp oid (which is an array of unsigned integers). The OID is internally
stored as a C array of integers for speed purposes when doing comparisons, etc.
The standard logical expression operators (<, >, ==, ...) are overloaded such that lexographical comparisons may be done with them.
The + operator is overloaded to allow you to append stuff on to the end of a OID, like index segments of a table, for example.
EXPORT
int snmp_oid_compare(oid1, oid2) int compare(oid1, oid2)
AUTHOR
Wes Hardaker, <hardaker@users.sourceforge.net>
SEE ALSO
SNMP, perl.
Copyright
Copyright (c) 2002 Networks Associates Technology, Inc. All Rights Reserved. This program is free software; you can redistribute it
and/or modify it under the same terms as Perl itself.
perl v5.16.3 2012-10-09 OID(3)