10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I found this Perl Script on the EuroParl website which does Sentence Splitting.
# Based on Preprocessor written by Philipp Koehn
use FindBin qw($Bin);
my $mydir =... (0 Replies)
Discussion started by: gimley
2. Shell Programming and Scripting
I have the following string :
Cat dog fox catepillar bear foxy
I need to replace "cat" and "fox" words from this sentence to word "animal"
I do the following:
open(F1, "<$inputFile") or die "Error: $!";
open(F2, ">$outputFile") or... (1 Reply)
Discussion started by: AIX_30
3. Shell Programming and Scripting
I have the following perl array:
@longname = (Fasthernet0/0 Fasthernet0/1 Serial0/1/0 Serial0/2/1 Tunnel55 Tunnel77)
with the followinh array:
@shortname = (Fa0/0 Fa0/1 Se0/1/0 Se0/2/1 Tu55 Tu77)
in other words, I need to remove the following from each element in the array... (4 Replies)
Discussion started by: ahmed_zaher
4. Shell Programming and Scripting
can you help me with this?
important: it has to be a pure perl code.
"ls accessibility | grep -v Makefile" outputs
at-spi-reference (6 Replies)
Discussion started by: pseudocoder
5. UNIX for Dummies Questions & Answers
I need some Help to write a unix script that asks for a sentence to be typed out then with the sentence. Counts the number of spaces within the sentence and then echo's out "The Number Of Spaces In The Sentence is 4" as a example
Danielle (12 Replies)
Discussion started by: charlie101208
6. Shell Programming and Scripting
I have two strings like this in an array:
@a=("Brain aging is associated with a progressive imbalance between intracellular concentration of Reactive Oxygen Species","Brain aging is associated with a progressive imbalance between intracellular concentration of Reactive... (9 Replies)
Discussion started by: vanitham
7. Shell Programming and Scripting
Hey all, Im trying to write a script on windows, which Im not too familiar with. Im generally a bash scripting guy but am using perl for this case.
My question is...
I have this exact output:
2 Dir(s) 6,380,429,312 bytes free
and I just need to get the number out... (4 Replies)
Discussion started by: trey85stang
8. Shell Programming and Scripting
I used the eval command in shell programming for assigning a value to a stored value of a variable.
eval echo $"$VAR"
How can i assign a value to a stored value of a variable in perl OR how i can write above code in Perl?
I need your help... (4 Replies)
Discussion started by: kunal_dixit
9. Shell Programming and Scripting
Hi using the below cmd i am identifying wheether last character in each line in thousands of files as semicolon or not.If last character is semicolon i am removing semicolon .If last character is not semicolon then i am appending next line to present line .
For example my input file consists of... (4 Replies)
Discussion started by: dbsurf
10. Shell Programming and Scripting
I want to replace a string within a file using perl.
We have a line that gets commented out, and I want to replace that line now matter how it was commented out.
for example, I'd want to replace
###ES=PR1A with ES=PR1A
##LJW(9/16/26)ES=PR1A with ES=PR1A
I tried: perl... (4 Replies)
Discussion started by: Lindarella