10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a perl script that I was cleaning up, it works very well, but I was wondering if anyone knows of a better way to double split.
Sample file:
Move_VALIDATE,020212191ABC01,SNSNT---01CAB101A-1-1-4-20
Move_VALIDATE,030323202ABC01,SNSNT01CAB101A-1-1-4-20
Section in script:
foreach my... (1 Reply)
Discussion started by: numele
1 Replies
2. Shell Programming and Scripting
Hi guys,
could someone throw some light on the following behaviour of printf (I'll start with info about the system and the tool/shell/interpreter versions)?:
$ uname -a
Linux linux-86if.site 3.1.0-1.2-desktop #1 SMP PREEMPT Thu Nov 3 14:45:45 UTC 2011 (187dde0) x86_64 x86_64 x86_64... (9 Replies)
Discussion started by: elixir_sinari
9 Replies
3. Red Hat
:confused:We have two servers one active and one stand by
as follows Active 202.61.9.9
Stand by 202.61.9.10
Float IP 202.61.9.8
What is use of this float IP?
How it is configured? (1 Reply)
Discussion started by: manalisharmabe
1 Replies
4. Shell Programming and Scripting
hi everybody,
can you help me with this?
important: it has to be a pure perl code.
zz.lis:
accessibility
arabic
archivers
astro
audio
benchmarks
.
.
.
"ls accessibility | grep -v Makefile" outputs
accerciser
at-poke
at-spi
at-spi-reference (6 Replies)
Discussion started by: pseudocoder
6 Replies
5. Shell Programming and Scripting
Hi,
I have string like this:
$str=' DNA OR ("rna AND binding AND protein")';
I just wanted to substitute AND with a blank. How can i do that?
I want the output like this:
$string= DNA OR ("rna binding protein") (3 Replies)
Discussion started by: vanitham
3 Replies
6. Shell Programming and Scripting
I need to echo a string that has double quotes in a Perl script.
#!/usr/bin/env perl
`echo Rule123 -comment \"blah blah\" >> $filename`
I'd like to get below appended to $filename:
Rule 123 -comment "blah blah"
But instead, the double quotes are lost:
Rule 123 -comment blah bah
... (1 Reply)
Discussion started by: slchin
1 Replies
7. Shell Programming and Scripting
I have a cgi script I run through apache2 and I need to have a line that contains double quotes within double quotes.
Here's what I need PERL to pass to rrdtool:
HRULE:30#BBBB00:"30.0 constant":dashesIt's a little more complicated since I also have variables in the statement which requires... (13 Replies)
Discussion started by: audiophile
13 Replies
8. Shell Programming and Scripting
Hi Guys,
I'm a Perl newbie and was wondering if there's a way of displaying
double quotes within double quotes.
I'm try to print the contents of the variable to a file by using the system function.
Here is an example of my code:
#==============================
$website = <STDIN>;... (2 Replies)
Discussion started by: kbdesouza
2 Replies
9. Programming
Good morning,
I'm testing the use of ceilf:
/*Filename: str.c*/
#include <stdio.h>
#include <math.h>
int main (void)
{
float ceilf(float x);
int dev=3, result=0;
float tmp = 3.444f;
printf("Result: %f\n",ceilf(tmp));
return 0;
} (1 Reply)
Discussion started by: jonas.gabriel
1 Replies
10. Shell Programming and Scripting
I know this is probably much simplier than I am making but I need some help please. I have a data file that contains a value on the first line between double quotes ("00043"). I need to assign the value between the first set quotes to a variable in my perl script for comparison analysis. Also,... (6 Replies)
Discussion started by: methos
6 Replies