10-12-2011
Hi,
yes like that but i need to create one module for the script as i posted. i will call that module in my main function, in my main function the file path is the input and it return hash value. so i need to create one module that calls in my main function.
regards,
veerubiji.
Last edited by veerubiji; 10-12-2011 at 11:38 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi friends,
What are the possible ways to connect to DB2 database from Perl (on unix).
I need to connect to DB2 and get records for further processing. Can you please suggest the best possible way. I heard about DBI/DBD, if you have some sample scripts please post them too.
Thanks in advance. (3 Replies)
Discussion started by: satguyz
3 Replies
2. Shell Programming and Scripting
Hi,
I am extracting SQL queries into a file and the file is as follows
*********************************************************
select BatchKey ,restartStatus ,batchContextBuffer ,batchPgmId ,StartKey ,
EndKey ,Mcbatchcontrol_ver
from
qsecminload.Mcbatchcontrol_t where RefId = :1 ... (5 Replies)
Discussion started by: sagarbsa
5 Replies
3. Programming
use strict;
print "Enter last 4 digits of phone number:";
chomp(my $number=<>);
die "Invalid number: '$number'\n" unless $number=~/^\d{4}$/;
my @d=split(undef,$number);
my %map={
2=>"",
3=>"",
4=>"",
5=>"",
6=>"",
7=>"",
8=>"",
9=>"",
};
my $r=$map{$d}.$map{$d}.$map{$d}.$map{$d};... (1 Reply)
Discussion started by: tturn33
1 Replies
4. UNIX for Dummies Questions & Answers
I need a small and simple clarification...
Can someone tell me whether PERL is a programming language or not.
Also, can shell scripts also considered as programming language or not.
Also, please tell me the exact difference between programming language and scripting.
Please help.... (3 Replies)
Discussion started by: Anjan1
3 Replies
5. Shell Programming and Scripting
Can someone please tell me what the big deal about perl is?
i have been doing shell programming for quite a number of years and I have to say, there's very little if any thing that I can't do in shell programming. i just need to investigate how to do it.
so, my question is, does deep... (1 Reply)
Discussion started by: SkySmart
1 Replies
6. Shell Programming and Scripting
Hi, everyone!!
i am new to perl programming.. plz help me.
#!C:/perl/bin
use warnings;
use strict;
use Text::CSV_XS;
my @rows = "";
my $row;
my $count;
my $fh;
my @fields = "";
my $csv = Text::CSV_XS->new ({binary =>1}) or
die "cannot use CSV:" .Text::CSV->error_diag ();
open... (3 Replies)
Discussion started by: kvth
3 Replies
7. Programming
I am having a text file with
Vivek 50
Ram 34
Hulk 45
Vivek 23
Ram 23
Vivek 55
Now I need a perl script to display the fields of 1st column & the 2nd column with summation (& avoid the duplicates).
Vivek 128
Ram 57
hulk 45
Plz help me... (1 Reply)
Discussion started by: gameboy87
1 Replies
8. Shell Programming and Scripting
how to link the linux files in perl on the local webpage ????
suppose we have some results and want to get them published on the local webpage of our internal site. how this can be done using HTML and perl together , so that the results are published directly on the webpage.
thanks
kullu (0 Replies)
Discussion started by: kullu
0 Replies
9. Shell Programming and Scripting
I am trying to make a simple perl program that reads 20 characters upstream from the codon ATG in a given sequence. The following is what I have. I just dont know how to make the program read 20 characters upstream from the ATG codon.
print "\nThis program will read 20 characters upstream... (1 Reply)
Discussion started by: patiencenpray
1 Replies
10. Shell Programming and Scripting
Dears,
I want to print filename and count of each file in perl but failing to implement.
`find $srcFolder -maxdepth 1 -type f -name "*$workDate*$fileExt" -exec sh -c ' && printf "$workDate|%s|%s\n" "$(wc -l<"$0")" *$workDate*$fileExt' {} \ >> /Sadique/filelog.out \\; 2> /dev/null`;
... (2 Replies)
Discussion started by: sadique.manzar
2 Replies
LEARN ABOUT CENTOS
smixlate
smixlate(1) SMI Tools smixlate(1)
NAME
smixlate - translate SMI/SPPI identifiers
SYNOPSIS
smixlate [ -Vhm ] [ -c file ] [ -p module ] [ -l level ] module(s)
DESCRIPTION
The smixlate program is used to translate identifiers and especially OIDs into a more human readable format.
OPTIONS
-V, --version
Show the smixlate version and exit.
-h, --help
Show a help text and exit.
-r, --recursive
Report errors and warnings also for recursively imported modules.
-c file, --config=file
Read file instead of any other (global and user) configuration file.
-p module, --preload=module
Preload the module module before reading the main module(s). This may be helpful if an incomplete main module misses to import some
definitions.
-l level, --level=level
Report errors and warnings up to the given severity level. See the smilint(1) manual page for a description of the error levels. The
default error level is 3.
-a, --all
Replace all OIDs including OID prefixes. Without this option, smixlate will only translate OIDs with a corresponding notification,
scalar, column, row, or table definition.
-f, --format
Preserve the input format as much as possible by inserting/removing white space characters.
module(s)
These are the modules to be loaded for the subsequent translation. If a module argument represents a path name (identified by con-
taining at least one dot or slash character), this is assumed to be the exact file to read. Otherwise, if a module is identified by
its plain module name, it is searched according to libsmi internal rules. See smi_config(3) for more details.
EXAMPLE
This example translates numeric OIDs in the input text into a more human readable format.
$ echo "what is this oid? 1.3.6.1.2.1.2.2.1.3" |
./smixlate -l 0 /usr/local/share/mibs/ietf/*
what is this oid? ifType
$
SEE ALSO
The libsmi(3) project is documented at http://www.ibr.cs.tu-bs.de/projects/libsmi/.
AUTHORS
(C) 2006-2006 J. Schoenwaelder, International University Bremen, Germany
and contributions by many other people.
IUB
June 18, 2006 smixlate(1)