Hi All
I am using regular expressions to determine how to group certain data. I've included an example of the data below.
USD_SPTR_2Y_725.5_PUT_EUROPEAN_09Q1|USD||European|
CAD_NDX_10Yx1Y_5.5_PUT_EUROPEAN_09Q1|CAD||European|
The regular expressions I am using is as follows and this is... (5 Replies)
I'm trying to have my perl script telnet into the network device execute a command then dump the output of the command into a variable. The script then greps for the word "STANDBY". I can't seem to get the script to print out the output because it seems that the script can't find the word... (1 Reply)
Hi,
i am java guy and new to unix.
I want to validate date pattern using Regex expression
here is the sample program i have written.
#!/bin/sh
checkDate="2010-04-09"
regex="\\d{4}-\\d{2}-\\d{2}\$"
echo $regex
if ]
then
echo "OK"
else
echo "not OK"
fi
But the ouput is... (2 Replies)
Hi,
I am new to scripting.
please help me in validating the user entered time Pattern
Here is the program
#!/bin/bash
validateTimeFormat()
{
checkTime=$1
timePattern="::"
if ]
then
echo "Valid time pattern"
return 1
else
echo "InValid time pattern"
return -1
fi
}
echo "Please... (2 Replies)
What would be the regular expression that can search for a Pattern, having 8 characters out of which atleast 1 digit, 1 lower case, 1 upper case letter and 1 special character must be there. But these can occur at any place randomly. Please help me out.
I'm using find $dir -name "*.txt" -exec... (0 Replies)
Hello,
Awk seem treat the pattern as regular expression, how can awk search not using regular expression? e.g. just represent for "", not "A" or "a" . I don't want to add backslash . (2 Replies)
Hi All,
I have a sftp session log where I am transferring multi files by issuing "mput abc*.dat". The contents of the logfile is below -
#################################################
Connecting to 10.75.112.194...
Changing to: /home/dasd9x/testing1
sftp> mput abc*.dat
Uploading... (7 Replies)
Hello ,
Could anyone help me to define the string in regular expression way .
Below is my string
\rtf1\ansi\deff0{\fonttbl{\f0\fswiss Helv;}{\f1\fnil MS Sans Serif;}}
{\colortbl ;\red0\green0\blue0;}
\viewkind4\uc1\pard\cf1\lang1033\f0\fs16
The string will always start as \rtf1 and... (6 Replies)
Hi All,
I would like to search a regular expression by passing as an i/p variableto AWK.
For Example ::
162.111.101.209.9516
162.111.101.209.41891
162.111.101.209.9516
162.111.101.209.9517
162.111.101.209.41918
162.111.101.209.9517
162.111.101.209.41937
162.111.101.209.41951... (7 Replies)
Hi,
I'm struggling with very very simple task but dont know where I'm going wrong.
Have the following file numbers.txt
1
12
123
1234
12345
123456
1234567
12345678
123456789
1234567890
9876543210
987654321
98765432
9876543
987654
98765 (1 Reply)
Discussion started by: bobbygsk
1 Replies
LEARN ABOUT DEBIAN
gpt-install
GPT-INSTALL(8) User Contributed Perl Documentation GPT-INSTALL(8)NAME
gpt-install - Installs GPT packages.
SYNOPSIS
gpt-install [options] [packages or bundles]
Options:
-verbose Print copious output
-help Print usage
-man Print man page.
-version Print GPT version.
-force Replace package no matter what.
-loose Replace a broader range of packages.
-installdir=PATH Override $GLOBUS_LOCATION.
-tmpdir=PATH Path to tmp disk space
[packages or bundles] List of binary packages and bundles to install.
DESCRIPTION
gpt-install takes a GPT described package or bundle and installs it. The program can install either RPM's or GPT packages.
OPTIONS -force forces all action to be taken, regardless of state.
-tmpdir Place to unpack bundles.
-installdir
Directory to which files shall be written. Default is $GLOBUS_LOCATION
-loose pgm packages can replace a pgm_static package (and vice versa) or a pgm package with a different flavor.
-help Print a brief help message and exits.
-man Prints the manual page and exits.
-version
Prints the version of GPT and exits.
EXAMPLES
For the command:
gpt-install foo-2.1-gcc32-pgm.tar.gz
foo-1.1-gcc32-pgm will be replaced.
foo-2.2-gcc32-pgm will B<not> be replaced. It is newer.
foo-1.1-vendorcc32-pgm will B<not> be replaced. Wrong flavor.
foo-1.1-gcc32-pgm_static will B<not> be replaced. Wrong package type
foo-2.2-gcc32-pgm_static will B<not> be replaced. Wrong package type
For the command:
gpt-install -force foo-2.1-gcc32-pgm.tar.gz
foo-1.1-gcc32-pgm will be replaced.
foo-2.2-gcc32-pgm will be replaced.
foo-1.1-vendorcc32-pgm will B<not> be replaced. Wrong flavor
foo-1.1-gcc32-pgm_static will B<not> be replaced. Wrong package type
foo-2.2-gcc32-pgm_static will B<not> be replaced. Wrong package type
For the command:
gpt-install -loose foo-2.1-gcc32-pgm.tar.gz
foo-1.1-gcc32-pgm will be replaced.
foo-2.2-gcc32-pgm will B<not> be replaced. It is newer.
foo-1.1-vendorcc32-pgm will be replaced.
foo-1.1-gcc32-pgm_static will be replaced.
foo-2.2-gcc32-pgm_static will B<not> be replaced. It is newer.
For the command:
gpt-install -force -loose foo-2.1-gcc32-pgm.tar.gz
foo-1.1-gcc32-pgm will be replaced.
foo-2.2-gcc32-pgm will be replaced.
foo-1.1-vendorcc32-pgm will be replaced.
foo-1.1-gcc32-pgm_static will be replaced.
foo-2.2-gcc32-pgm_static will be replaced.
BUGS
gpt-install currently does not honor static build numbers. Instead it will replace any pgm_static package that is the same version or
older. For example:
gpt-install -force foo-2.1-2-gcc32-pgm_static.tar.gz
foo-1.1-5-gcc32-pgm_static will be replaced.
foo-2.1-1-gcc32-pgm_static will be replaced.
foo-2.1-5-gcc32-pgm_static will be replaced.
foo-2.2-1-gcc32-pgm_static will not be replaced.
foo-2.1-gcc32-pgm will not be replaced.
SEE ALSO gpt-uninstall(1)gpt-query(1)gpt-verify(1)AUTHOR
Michael Bletzinger <mbletzin.ncsa.uiuc.edu> and Eric Blau <eblau.ncsa.uiuc.edu>
perl v5.14.2 2012-04-30 GPT-INSTALL(8)