hi,
i want to identify the position of match in my substring here is the code
Code:
open (my $fhConditions, "<1.txt");
my $l = 100;
open(my $read, "<2.txt");
my @e = <$read>;
my $d = join('', @e );
$d =~ s/\s+//g;
while (my $line = <$fhConditions>) {
chomp $line;
my @info = split("\t" , $line);
my $a= $info[3]-$l;
my $match = substr($d,$a,$l);
Code:
use strict;
use warnings;
open (my $fhConditions, "<input1.txt"); #open input file1
open (my $fhConditions1, "<input2.txt");#open input file2
open (my $w1, ">output1");
open (my $w2, ">output2");
our $l = 10;#set a length to be searched for match
our $site="AAGCTT";#pattern to be matched
our $p1=0;
our $p2=0;
our $
Hi All,
I want to remove " character if present in position 25th in CSV file. Each field in CSV file is separated by , and enclosed in "" (enclosed using double quotes)
For example
"1","2","3",........."123 Tom " is Good boy","26",........"45"
Where "1" first position character, ......
Hi,
I am in a situation to print the message on a column, where the each line starting position should be same.
For example code:
Code:
HOSTNAME1="1.2.3.4.5.6.7"
TARGET_DIR="/tmp"
echo "HOSTNAME1:" "$HOSTNAME1" | awk -v var="Everyone" '{len=55-length;printf("%s%*s\n",$0,len,var)}'
echo "TARGET_DIR:" "$
Hi guys,i am trying to set up Vim as my C++ IDE since 2 days and no success so far.I have installed Vim pacman -Q vim
vim 7.3.661-1I have downloaded vim-latex and clang tar balls,extract and place appropriate directorys in ~/.vim e.g.
Hi All, I have a file. This file contain huge amount of data. I want to modify this file. I want enter new line when count of "~ character is 79.
Need to create a list for yad (zenity) from directory listings:
dir-a contains files 1,2,3,4,5,6
dir-b contains files a,b,c,d,e,f
Final list (in a variable) needs to read:
"1" "a" "2" "b" "3" "c" "4" "d" "5" "e" "6" "f"
( For simplicity I will always ensure that &q
Hi,
I have a file in the following format
Code:
"SYLVESTER,WILLARD G"|"S00633600"|"221052958A"|"H2256"|"015"|""|"00000042BASJ"|"665303"|"N"|"20100211"|"380.4"|""|""|""|"5400"|"20110218"|""|"20110218"|"FEESC&qu
Hi ,
Can you pleas help me with below requirement?
There is only one big line in the file.