10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Good morning, I appreciate any assistance that I can get from the monks out there. I am able to get this to work for me so that I can do a hostname lookup if I only specify one hostname in the script. What I want to do is have a file with hostnames and do lookups for each name in the file. Here is... (1 Reply)
Discussion started by: brianjb
2. Shell Programming and Scripting
I just write a simple function to read the file line by line.
But when I run it it says out of memory.
I am not sure about the root cause, Can someone help me out of this?
my $NDPDir = "/home/eweiqqu/NCB/NDP_files/";
... (1 Reply)
Discussion started by: Damon_Qu
3. Shell Programming and Scripting
I am trying to read from a file using PERL:confused, however i need to read specific portions of the file
the file goes like this
and so on
anyways i need to be able to write a program that ONLY opens the lines beginning with "<"? so it would... (2 Replies)
Discussion started by: UNDstudent
4. Shell Programming and Scripting
Need perl script, data file will be csv format.
I have text file contains 2 colums.
I have two location 1. files present and 2. folders present. I need to search for file and folder if folder... (3 Replies)
Discussion started by: hnkumar
5. Shell Programming and Scripting
Hi Everyone, I am very new to perl, but came across a situation wherein I have to read a c++ header file and write the datatype, its identifier and also the length to an excel file. There can be other header files, in the directory but I should browse through the file which has only "_mef:" string... (9 Replies)
Discussion started by: ramakanth_burra
6. Shell Programming and Scripting
Hi, I am writting some perl scripts for daily backup process. In which I want to pass some data/referance from another txt file. Text file contains only one column and multiple rows. I want to pass this data to variables of another perl script.
Refdoc.txt file contains data as:
perl1... (3 Replies)
Discussion started by: n.dba
7. Shell Programming and Scripting
I am new to perl.
I want to read from a file on the basis of some conditions..
I want to define parameters in a configuration file in such a manner like...
in my perl script, theer is a variable like this..
then i want to read values from first if block from the file... (1 Reply)
Discussion started by: shellwell
8. Shell Programming and Scripting
I'm trying to read a file from a server. Simple file with some numbers.
Here is the code i'm running.
use Net::SSH::Perl::SSH1 ;
$scon = Net::SSH::Perl->new ("com123.sever.mydomain.com",(protocol=>'2',port=>'22',debug=>'true'));
open(FILE,... (9 Replies)
Discussion started by: Phi01
9. Shell Programming and Scripting
I need to read each line (test.txt) and store it in a array (@test)
How to do it in perl.
Suppose i have a file test.txt. I have to read each line of the test.txt file and store it in a array @test. How to do it in perl.
Harikrishna (3 Replies)
Discussion started by: Harikrishna
10. Shell Programming and Scripting
is there a perl equivalent to sscanf? or something where I get the strings separated by spaces? (1 Reply)
Discussion started by: karyn1617