Search Results

Search: Posts Made By: filter
1,231
Posted By filter
Looping in Perl based on defined keys in Map
Hello All,

I am writing the below script where it will connect to database and returns the results.



#!/sw/gcm/perl510/bin/perl
use SybaseC;

&openConnection;
&loadvalues;

sub...
1,304
Posted By filter
Search for a pattern that exists in the codebase
Hello everyone,

I want to search for a specific pattern in the entire codebase that exists.

Pattern:
I need to find wherever there is a harcoded value "Vxxxx" and "GCxxxx" exists in the perl...
1,250
Posted By filter
Thank you very much for all your replies.
Thank you very much for all your replies.
1,250
Posted By filter
Adding a String after a text in a Line (using nawk)
Hello

I need to add a String after a text in a line. The Unix file is huge and I think nawk would be quick.

Current:

-name FILTER -node 60265 -cob 31/01/2013 -risktype + -change 1 -filter...
1,926
Posted By filter
perl -Calling the Subroutine Only if the condition is met
Hello All,

I am in the process of learning perl.I have a perl script and based on the arguments passed it would the appropriate subroutine that is defined in the script.

Now, I need to check...
1,000
Posted By filter
Hi Jim, Thanks for your reply. I am...
Hi Jim,

Thanks for your reply.

I am getting the following error when I am trying to execute the awk command:
$ awk 'FILENAME=="dir1.txt" {arr[$(NF)]=$1} FILENAME=="dir2.txt" {print $(NR),...
1,000
Posted By filter
Compare the Permissions for all the scripts that exists in two Directories
Hello All,

I am in the process of finding the permissions on all the files that exists in two directories:

Dir1: PROD_Scripts/*
Dir2: STAGE_Scripts/*

Both the Directories have some shell...
2,990
Posted By filter
Pattern Matching and extracting the required fields in Perl
Hi All,

I am writing the following Perl Scrip and need your help in Pattern matching :

I have the following Shell Script that would read line by line from the file (file_svn) and would inturn...
2,935
Posted By filter
Thanks a lot for all your quick replies.This...
Thanks a lot for all your quick replies.This would really help me out.

Seems like my script is still to be performed:

In the file , I would have the following:
...
2,935
Posted By filter
Extracting the file name from the specified URL
Hello Everyone,

I am trying to write a shell script(or Perl Script) that would do the following:

I have a file that contains the following lines:
File:
...
2,297
Posted By filter
Thank you very much for all your quick replies. ...
Thank you very much for all your quick replies.

Its really helpful.
2,297
Posted By filter
Changing the character after the Underscore(_)
Hi Everyone,

I am looking for a command that would do the following:

1) Change all the letters/words in a file to Lower case Letters/words.
2) Remove the Underscore (_) and Change the...
10,541
Posted By filter
Thanks a lot birei. I was using the below: ...
Thanks a lot birei.

I was using the below:

$line =~ s/(?<=DATARECORDS=)\d*/$good_lines/;

Really appreciate your help. And below is the final code. It might help...
10,541
Posted By filter
Thanks much for your help birei.Its really nice...
Thanks much for your help birei.Its really nice thought that you have given.

But the substitution is not happening i.e.


if ( $fields_processed ) {
if ( $flipflop = ( $line...
10,541
Posted By filter
Thanks a lot for your reply and for all your...
Thanks a lot for your reply and for all your help.

I need to count the number of line in the good file excluding the header and footer and then would need to substitute the count with the number...
10,541
Posted By filter
Thank you very much for your reply birei. ...
Thank you very much for your reply birei.

The data file contains the header information (example: names of the columns) and the footer contains the number of the data records, filestamp.

I have...
10,541
Posted By filter
Sure birei. I have a data file which...
Sure birei.

I have a data file which contains ~3.5Million records and would have a header and a footer.It has many number of columns with a pipe ("|") delimited.

Example:

START-OF-FILE...
10,541
Posted By filter
Hi birei, yes you are correct...Thanks to...
Hi birei,

yes you are correct...Thanks to you as well.

I am trying to do run the script with the below script:


open(FILE,$file)|| die ("could not open file $file: $!");
open(OUT,...
10,541
Posted By filter
Hi Corona688, Thank you very much for your...
Hi Corona688,

Thank you very much for your quick reply...

I have tried the following as you have suggested :


open(FILE,$file)|| die ("could not open file $file: $!");

my (@whole,...
10,541
Posted By filter
Reading the file line by line in Perl
Hello Everyone,

I have written a perl script that will load the entire data file into an array and then I would check the value of the specific column and then if interested I will write to a good...
3,794
Posted By filter
Hi Yazu / All, I am trying to implement and...
Hi Yazu / All,

I am trying to implement and extend the logic more further.

The only issue is that the memory is reporting as full if a huge file is being passed to the script.

Currently the...
2,060
Posted By filter
Getting the Folder Structure in Unix
Hi All,

I have a compute box and I want to tar directory structure under a directory and then Deploy/untar it in a new compute box so that the directory structure will be exactly the same.

I do...
1,247
Posted By filter
thanks a lot for your quick replies. ...
thanks a lot for your quick replies.

Appreciate your help.
1,247
Posted By filter
Find and change the lines in the file.
Hi Everyone,

I have a JIL (Job Information Language) Definition for Several Jobs in a file.
I would like to do the following:


insert_job: KS_INT_BIZ_INT job_type: c
command:...
3,036
Posted By filter
Checking whether the file exists under a directory and doing a diff
Hi Everyone,

I am writing a shell script for the below needs and would like your suggestions and advices.

I have a lot of scripting files(Shell Scripts) under the directory:
...
Showing results 1 to 25 of 56

 
All times are GMT -4. The time now is 08:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy