08-21-2013
Thank you for your suggestions i got it working
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Could anyone help me in changing a tabular format output to comma seperated file pls in K-sh. Its very urgent.
E.g : username empid
------------------------
sri 123
to
username,empid
sri,123
Thanks,
Hema:confused: (2 Replies)
Discussion started by: Hemamalini
2 Replies
2. Shell Programming and Scripting
Here is what old matrix look like,
IDs X1 X2 Y1 Y2
10914061 -0.364613333 -0.362922333 0.001691 -0.450094667
10855062 0.845956333 0.860396667 0.014440333 1.483899333... (7 Replies)
Discussion started by: ssshen
7 Replies
3. Programming
Hi power user,
I have this type of data (distance list):
file1
A B 10
B C 20
C D 50I want output like this
# A B C D
A 0 10 30 80
B 10 0 20 70
C 30 20 0 50
D 80 70 50 0 Which is a distance matrix
I have tried... (0 Replies)
Discussion started by: anjas
0 Replies
4. Ubuntu
Hi all,
Is there a way to convert full data matrix to linearised left data matrix?
e.g full data matrix
Bh1 Bh2 Bh3 Bh4 Bh5 Bh6 Bh7
Bh1 0 0.241058 0.236129 0.244397 0.237479 0.240767 0.245245
Bh2 0.241058 0 0.240594 0.241931 0.241975 ... (8 Replies)
Discussion started by: evoll
8 Replies
5. Shell Programming and Scripting
Hi All,
I was wondering how I can convert each line in an input file where fields are separated by variable width spaces into a CSV file. Below is the scenario what I am looking for.
My Input data in inputfile.txt
19 15657 15685 Sr2dReader 107.88 105.51... (4 Replies)
Discussion started by: vharsha
4 Replies
6. Shell Programming and Scripting
Hi,
Needs for statistics, doing converting
Here is a sample file
Input :
1|A|17,94
1|B|22,59
1|C|56,93
2|A|63,71
2|C|23,92
5|B|19,49
5|C|67,58
expecting something like that
Output :
1|A|17,94|B|22,59|C|56,93
2|A|63,71|B|0|C|23,92
5|A|0|B|19,49|C|67,58 (11 Replies)
Discussion started by: fastlane3000
11 Replies
7. Programming
Dear All
I would like to convert columns to matrix
For example my data looks like this
D2 0 D2 0 1.0
D2 0 D2 1 0.308
D2 0 D2 2 0.554
D2 0 D2 3 0.287
D2 0 D2 4 0.633
D2 0 D2 5 0.341
D2 0 D2 6 0.665
D2 0 D2 7 0.698
D2 0 D2 8 0.625
D2 0 D2 9 0.429
D2 0 D2 10 0.698
D2 0 D2 11... (7 Replies)
Discussion started by: bala06
7 Replies
8. Shell Programming and Scripting
Hi All,
I need to convert an exel spreadsheet into a SAS dataset,
and the following format change is needed. Please help, this is too complex
for a biologist.
Let me describe the input.
1st row is generation.1st column in keyword 'generation', starting 2nd column there are 5... (9 Replies)
Discussion started by: newbie83
9 Replies
9. Shell Programming and Scripting
Hi All,
I do have a file with many lines (rows) and it is space delimited. For example: I have a file named SR345_pl.txt. If I open it in an editor, it looks like this:
adfr A2 0.9345
dtgr/2 A2 0.876
fgh/3 A2 023.76
fghe/4 A2 2345
bnhy/1 A3 3456
bhy A3 0.9876
phy A5 0.987
kdrt A5... (9 Replies)
Discussion started by: Lucky Ali
9 Replies
10. UNIX for Dummies Questions & Answers
Hi,
Can someone help in converting the below unstructured data to a CSV format please.
{
"branchId" : "BNSFGDJNSJG-73264HB-132131BNHJFSDG",
"branchName" : "NEWYORK-SSDF",
"branchProductId" : "72Y5HFHSF7H3RUNAWEF",
"PreferenceId" : "BASDBVcbzcYHcb",
"emailId" :... (9 Replies)
Discussion started by: naveen.kuppili
9 Replies
LEARN ABOUT DEBIAN
munin::node::configure::plugin
Munin::Node::Configure::Plugin(3pm) User Contributed Perl Documentation Munin::Node::Configure::Plugin(3pm)
NAME
Munin::Node::Configure::Plugin - Class representing a plugin, along with its installed and suggested services.
SYNOPSIS
my $plugin = Munin::Node::Configure::Plugin->new();
METHODS
new(%args)
Constructor.
Required arguments are 'name' and 'path', which should be the basename and full path of the plugin, respectively.
is_wildcard()
Returns true if the plugin is a wildcard. In the case of SNMP plugins, only double-wild plugins will return true (ie. 'snmp__memory'
would return false, but 'snmp__if_' would return true).
is_snmp()
Returns true if the plugin is an SNMP plugin.
in_family(@families)
Returns true if plugin's family is in @families, false otherwise.
is_installed()
Returns 'yes' if one or more links to this plugin exist in the service directory, 'no' otherwise.
suggestion_string()
Returns a string detailing whether or not autoconf considers that the plugin should be installed. The string may also report the
reason why the plugin declined to be installed, or the list of suggestions it provided, if this information is available.
installed_services_string()
Returns a string detailing which wildcards are installed for this plugin.
services_to_add()
services_to_remove()
Return a list of service names that should be added or removed for this plugin.
add_instance($name)
Associates a link from the service directory with this plugin.
add_suggestions(@suggestions)
Adds @suggestions to the list of suggested wildcards for this plugin. They are not validated.
read_magic_markers()
Sets the family and capabilities from the magic markers embedded in the plugin's executable, as specified by
http://munin-monitoring.org/wiki/ConcisePlugins#Magicmarkers <http://munin-monitoring.org/wiki/ConcisePlugins#Magicmarkers>
parse_autoconf_response(@response)
Parses and validates the autoconf response from the plugin, in the format specified by
http://munin-monitoring.org/wiki/ConcisePlugins#autoconf <http://munin-monitoring.org/wiki/ConcisePlugins#autoconf>
Invalid input will cause an error to be logged against the plugin.
parse_suggest_response(@response)
Validates the suggestions from the plugin.
Invalid suggestions will cause an error to be logged against the plugin.
parse_snmpconf_response(@response)
Parses and validates the snmpconf response from the plugin, in the format specified by
http://munin-monitoring.org/wiki/ConcisePlugins#suggest <http://munin-monitoring.org/wiki/ConcisePlugins#suggest>
Invalid or inconsistent input will cause an error to be logged against the plugin.
log_error($message)
Logs an error for later retrieval. The error will also be displayed if debugging output is enabled.
perl v5.14.2 2013-11-12 Munin::Node::Configure::Plugin(3pm)