Hi guys
I need to find both negative and positive numbers from the following text file. And i also dont need 0.
0
8
-7
-2268
007
-07
-00
-0a0
0a0
-07a0
7a00
0a0
Can someone please give a regex to filter out the values in red. I tried a few things in awk but it didnt work... (9 Replies)
Hello,
I am doing bash and for that doing excersices. The folowing one asks for 3 numbers and is suppose to return the maximum. An error should be returned if on of the numbers is missing. I managed to solve it. Can you give me other ways or advices.
#!/bin/bash
#Date: 2010.10.19
#Ecrire un... (5 Replies)
Hello,
I need to construct a pattern to match the below string (especially the timestamp at the beginning)
20101222100436_temp.dat
The below pattern works _temp.dat
However I am trying find if there are any other better representations.
I tried {14}, but it did not work.
I am on... (5 Replies)
hi all, im having problems. I need to change all number 10 in a text file to word form, or in short from 10->ten. the thing is number 10 including in dates such as 10/22/1997 or 03-10-2011 should not be changed. im having some trouble because the file contains numbers like "price range from... (11 Replies)
Hi,
I have a text file with an array of numbers such as :
123 1 456 45 9817 1 45
I would like to replace the digit "1" in a text file with "A". So it looks like this:
123 A 456 45 9817 A 45
If I use sed 's/1/A/g', I get
A23 A 456 45 98A7 A 45
I... (3 Replies)
I'm trying to grep lines where the digits at the end of each line are greater than digits. Tried this but it will only allow me to specify 2 digits. Any ideas would greatly be appreciated. grep -i '\<\{3,4,5\}\>' file
---------- Post updated at 05:58 PM ---------- Previous update was at 05:41... (1 Reply)
Using these strings as an example:
<a onclick="doShowCHys=1;ShowWindowN(0,'/daman/man.php?asv4=145148&playTogether=True',960,540,943437);return false;" title="">
<a onclick="doShowCHys=1;ShowWindowN(0,'/daman/man.php?asv4=1451486&playTogether=True',960,540,94343);return false;" title="">
<a... (12 Replies)
Trying to do some control flow parsing based on the index postion of an array member. Here is the pseudo code I am trying to write in (preferably in pure bash) where possible. I am thinking regex with do the trick, but need a little help.
pesudo code
if == ENDSINFIVEINTS ]]; then
do... (4 Replies)
Trying to find out how to discover if the first 2 characters of a string are "22"
Not sure how.
I could use
if ]; then echo "yes";fi
But I think that will only grab the pattern 22 and not the first 2 digits. (5 Replies)
Hello,
I am using the Sublime Plugin LogHighlight.
I can use RegEx there to highlight some lines in sublime.
Now I need to find every line, that has a number of above 25000.
the lines look like this:
smart_sdl.result: 8947
smart_sdm.result: 8947
smart_sdn.result: 25000
Currently I am... (3 Replies)
Discussion started by: blend_in
3 Replies
LEARN ABOUT CENTOS
perlivp
PERLIVP(1) Perl Programmers Reference Guide PERLIVP(1)NAME
perlivp - Perl Installation Verification Procedure
SYNOPSIS
perlivp [-p] [-v] [-h]
DESCRIPTION
The perlivp program is set up at Perl source code build time to test the Perl version it was built under. It can be used after running:
make install
(or your platform's equivalent procedure) to verify that perl and its libraries have been installed correctly. A correct installation is
verified by output that looks like:
ok 1
ok 2
etc.
OPTIONS -h help
Prints out a brief help message.
-p print preface
Gives a description of each test prior to performing it.
-v verbose
Gives more detailed information about each test, after it has been performed. Note that any failed tests ought to print out some
extra information whether or not -v is thrown.
DIAGNOSTICS
o print "# Perl binary '$perlpath' does not appear executable.
";
Likely to occur for a perl binary that was not properly installed. Correct by conducting a proper installation.
o print "# Perl version '$]' installed, expected $ivp_VERSION.
";
Likely to occur for a perl that was not properly installed. Correct by conducting a proper installation.
o print "# Perl @INC directory '$_' does not appear to exist.
";
Likely to occur for a perl library tree that was not properly installed. Correct by conducting a proper installation.
o print "# Needed module '$_' does not appear to be properly installed.
";
One of the two modules that is used by perlivp was not present in the installation. This is a serious error since it adversely affects
perlivp's ability to function. You may be able to correct this by performing a proper perl installation.
o print "# Required module '$_' does not appear to be properly installed.
";
An attempt to "eval "require $module"" failed, even though the list of extensions indicated that it should succeed. Correct by
conducting a proper installation.
o print "# Unnecessary module 'bLuRfle' appears to be installed.
";
This test not coming out ok could indicate that you have in fact installed a bLuRfle.pm module or that the "eval " require
"$module_name.pm"; "" test may give misleading results with your installation of perl. If yours is the latter case then please let
the author know.
o print "# file",+($#missing == 0) ? '' : 's'," missing from installation:
";
One or more files turned up missing according to a run of "ExtUtils::Installed -> validate()" over your installation. Correct by
conducting a proper installation.
For further information on how to conduct a proper installation consult the INSTALL file that comes with the perl source and the README
file for your platform.
AUTHOR
Peter Prymmer
perl v5.16.3 2014-06-17 PERLIVP(1)