Search Results

Search: Posts Made By: xist
5,210
Posted By xist
in this redaction: use strict; use...
in this redaction:

use strict;
use warnings;
open FILE, "/tmp/result_2";
my $regex="\\[INFO\\] Starting program ver. (.*)";
my $res='Program started, version <$1> - OK.\n';
while (<FILE>) {...
5,210
Posted By xist
perl: storing regex in array variables trouble
hi
this is an example of code:

use strict;
use warnings;
open FILE, "/tmp/result_2";
my $regex="\\[INFO\\] Starting program ver. (.*)";
my $res="Program started, version <$1> - OK.\n";
while...
6,895
Posted By xist
sed "/Denied/ d" test.txt > tmp.txt && mv tmp.txt...
sed "/Denied/ d" test.txt > tmp.txt && mv tmp.txt test.txt
15,691
Posted By xist
I have an issue with one device, that doesn't...
I have an issue with one device, that doesn't return prompt like # at the end of output. It simply give a new line. But output can containt a few lines. Which kind of "prompt" can I put here to...
1,667
Posted By xist
Thanks, era! I think it'll be OK, if user...
Thanks, era!
I think it'll be OK, if user separate it by comma. Can you give an example of arguments parsing in this case? Simply to grab all the ip-list to $1 with "case" and then go on it with...
1,667
Posted By xist
A few arguments to one "key"
Hi!
I need to pass a few (as much as possible) arguments to one "key", i.e.

./myscript.sh -i one -b 1.1.1.1 2.2.2.2 3.3.3.3 ... -u users

I need to supply one or many IP adresses as a...
22,441
Posted By xist
how to pass variable to grep?
Hi
I have a such conditional:


SPAMH="it is SPAM"
if grep -q $SPAMH $NMDIR/$mail; then
SPAMHFLAG=1
else
SPAMHFLAG=0
fi

And grep doesn't catch this...
Showing results 1 to 7 of 7

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