9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am having below issue could anybody help me.
$x= SELECT * FROM EMP --xyz this change is done in q2;
I want delete the charchters from -- to till the end.
I want $x to be
$x= SELECT * FROM EMP;
Thanks,
Vijay G (1 Reply)
Discussion started by: gvk25
1 Replies
2. Shell Programming and Scripting
Hi,
I have a file with two string :
aa_bb_cc_def
gg_hh_jj_xyz
now i want a command in perl script, which gives me the result as :
aa_bb_cc.def
gg_hh_jj.xyz
Can anyone help me on this plz..
thanks in advane. (6 Replies)
Discussion started by: arup1980
6 Replies
3. Shell Programming and Scripting
Hello,
How to cut a char(s) for a word using perl??
I want to cut the number(s) from these sample words:
Port-channel24
Po78
Po99
Port-channel34
$word = "Port-channel24";
I want to put only the number in a varible.
Appreaciate using simple way in order to use it... (3 Replies)
Discussion started by: ahmed_zaher
3 Replies
4. Shell Programming and Scripting
This it to pring 'i' character.
#!/usr/bin/perl
$str="This is perl";
print $str;
Must i split the string to access a character from string?
How can i print characters individually using a for loop? (2 Replies)
Discussion started by: cola
2 Replies
5. Shell Programming and Scripting
my @array;
my $sepa = "|";
print $sepa;
open FH, "<100_20091023_2.txt";
while(<FH>){
push @array, split(/\$sepa/, $_);
print "@array\n\n";
}
I am not able split the line which have | separated (1 Reply)
Discussion started by: pritish.sas
1 Replies
6. Shell Programming and Scripting
Recently I was asked to write a regular expression in Perl to print the occurrences(count) of each character in a string. It should be in one line. Can you help me out with a solution?
Thanks in advance.
Coolbhai (6 Replies)
Discussion started by: coolbhai
6 Replies
7. Shell Programming and Scripting
Hello, i'm unable to remove the parenthesis character.
With $parsed_AsciiName =~ s/\(//;
the string is the same
And with $parsed_AsciiName =~ s/(//;
i retrieve "Unmatched ( in regex; marked by <-- HERE in m/( <-- HERE"
Any ideas, please? thank you in advanced. (4 Replies)
Discussion started by: aristegui
4 Replies
8. Shell Programming and Scripting
I have a variable dynamically generated
$batch = /dataload/R3P/interface/Bowne/reports/RDI00244.rpt
Now I'd like to strip '/dataload/R3P/interface/Bowne/reports/RDI' and '.rpt' from this variable
my output should be only 00244
how to do this using perl regex.I'm a newbie to perl and would... (1 Reply)
Discussion started by: ramky79
1 Replies
9. Shell Programming and Scripting
Hi
I have a file from which i need to remove the first 4 and the last 2 lines.. i know how to do it with sed but i need to do it in a perl script.. can you please help me how to do that.
Thanks (10 Replies)
Discussion started by: meghana
10 Replies