Search Results

Search: Posts Made By: rajkrishna89
1,650
Posted By rajkrishna89
Complex Regex Perl
Hi the below perl snippet will replace any three letter string in the beginning with a two letter string which is specified..but if i want to modfiy only certain characters for eg..

ABC - AB
CAB...
1,820
Posted By rajkrishna89
MS Word + Perl
The below snippet will find and replace string in a word document (.doc)..but the string which is replaced is highlighted how to remove the highlighted part..for eg
the string what i want to replace...
1,267
Posted By rajkrishna89
PERL Regular Expressions
im trying to extract some tags between [start] and [end] in a file..for eg..the file format is


[start]
[bbc_arc_001]
[bbc_arc_002]
[abc_arc_001]
[end]
[bbc_arc_001]
[bbc_arc_002]...
1,663
Posted By rajkrishna89
Directory Search Perl
@scriptfiles=glob('*.txt');

foreach $file (glob('*.txt'))
{
open(my $fh, $file) or die("Unable to open '$file': $!");
while (my $line = <$fh>)
{
if ($line =~...
1,895
Posted By rajkrishna89
GREP ISSUE
Hi im trying a GREP a varaiable which contains a file name and i search it in a list of .txt file and ifs its found the .txt file , it returns the name of the txt file name..the snippet im using is ...
1,723
Posted By rajkrishna89
Delete lines in an array Using perl
im having an array @check which contains text ..i want to open the array and i have to delete lines starting from a word called "check1" till "check2"

for eg:-

check1 Use descriptive titles...
1,109
Posted By rajkrishna89
GREP Issue in Perl
Im storing multiple functions in a varaible called $check...
The variable check contains the following:
a()
b()
c()
...
..etc

now im checking individually which function is kept in which...
936
Posted By rajkrishna89
Multiple Tag Search and Printing
Scenario:
The following text belongs to a .doc file
File: check1.asmFunction: MonksTag: NoTag: 001Tag: YesTag: 002File: check2.asmFunction: Perl MonksTag: YesTag: 003Tag: NoTag: 004File:...
4,535
Posted By rajkrishna89
.doc perl script
the script works fine for .txt files only but for .doc its not working at all :(
4,535
Posted By rajkrishna89
Even if im replacing $ with $line im getting...
Even if im replacing $ with $line im getting GLOB(0x38acc) thousands of times ..:( im not getting it stil :(
4,535
Posted By rajkrishna89
Need help in Perl Script for printing next line
I got multiple of documents in which i have to extract a line coming after a ID..The scenario is

Customer ID: none
VT : 002/89

Customer ID: Yes
VT: 001/89

Customer ID: none
VT: 006/85...
Showing results 1 to 11 of 11

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