Hello All,
I'm trying to extract the lines between two consecutive elements of an array from a file.
My array looks like:
problem_arr=(PRS111 PRS213 PRS234)
j=0
while } ]
do
k=`expr $j + 1`
sed -n "/${problem_arr}/,/${problem_arr}/p" problemid.txt
---some operation goes... (11 Replies)
I have file with following data,
http://www.some.com/web11.html
http://www.some.com/web/112.html
http://www.some.com/web/21.html
http://www.some.com/342.html
http://www.some.com/plk.html
http://www.some.com/abh.html
http://www.some.com/yte.html
http://www.some.com/tyr/098.html... (4 Replies)
hello
using KSH shell
i have those files in a folder
FILE01
FILE1
FILE02
FILE2
FILE001
FILE0001
in a script i would like to list all the files through regular expressions
i tried this
ls FILE+*
but i receive this error
ls: 0653-341 The file FILE+* does not exist.
what is... (2 Replies)
Hi All,
Need some help with a regular expression that I cant seem to work on. Say there is the following text -
Input
We all (need some) help some day (ps: when it rains) and I need to save some hay now.
During the rainy season (ps: when it might rain heavily) Seattle gets drenched but not... (3 Replies)
\..\ {3\}$
which one of these does this match
rs.ef$tt
abc.ab
abc.$$$$
abc
I think its the 1st one what do you think?
Thanks
Please use code tags! (2 Replies)
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
CA_RELEASE has a value of 6. I need to check if that this is a numeric value. if not error.
source $CA_VERSION_DATA
if * ]
then
echo "CA_RELESE $CA_RELEASE is invalid"
exit -1
fi
+ source /etc/ncgl/ca_version_data
++ CA_PRODUCT_ID=samxts
++ CA_RELEASE=6
++ CA_WEEK_NO=7
++... (3 Replies)
Hi,
I have the following file as shown below:
Replace()
{
sed -e "s+ABCDIR+$DDIR/C+g" \
-e "s+ABCDIR+$DDIR/C+g" \
-e "s + ABCDDIR+$DDIR/C"\
}
I need a Regular expression to grep 0nly ABCDIR.
if i use grep -i... (3 Replies)
Is it possible to combine a regular expression with a aritmetical expression? For example, taking a 8-numbers caracter sequece and casting each output of a grep, comparing to a constant.
THX! (2 Replies)
asmigrate(1m) Application Server Utility asmigrate(1m)NAME
asmigrate - automates migration of J2EE applications from other J2EE platforms to Sun Java System Application Server
SYNOPSIS
asmigrate [-h | --help] [-v | --version] [(-c |--commandline) | (-u --ui) ] [-q | --quiet] [-d | --debug][-s | --sourcedirectory
source_directory] [-S | --sourceserver source_application_server] [-t | --targetdirectory target_directory] [-T | --targetserver tar-
get_application_server] [-n | --scan-native-apis-only ] [-p | --scan-packages package_list] [-j | --java2db create-tables=true, drop-
tables=true, db-vendor-name=dbVendorName] [-m | --migrate-cmp comment-pk-modifiers=true, overwrite-conflicting-accessors=true] [-f |
--file-filter all-files=true, html-files=true, java-files=true, jsp-files=true, xml-files=true, archive-files=true] [-a | --append-logs
][operands]
Use the asmigrate utility to analyze your J2EE application and translate vendor specific settings to Sun JavaTMTM System Application Server
specific settings making the application deployable on Sun's J2EE products.
The following table identifies the supported J2EE product migrations:
+--------------------------+--------------------------------+
| Source J2EE Platform | Destination J2EE Platform |
+--------------------------+--------------------------------+
|WebSphere Application |Sun ONE Application Server 6.5 |
|Server 4.0 | |
| | |
|WebLogic Application | |
|Server 5.1 | |
+--------------------------+--------------------------------+
|WebLogic Application |Sun ONE Application Server 7 |
|Server 5.1, 6.0, 6.1 | |
| | |
|WebSphere Application | |
|Server 4.0 | |
| | |
|JavaTMTM 2 Platform | |
|Enterprise Edition 1.3 | |
| | |
|Sun ONE Application | |
|Server 6.x | |
| | |
|Sun ONE Web Server 6.0 | |
| | |
|JBoss Application Server | |
|3.0 | |
| | |
|Tomcat Web Server 4.1.12 | |
+--------------------------+--------------------------------+
|WebLogic Application |JavaTMTM 2 Platform, Enterprise |
|Server 5.1, 6.0, 6.1 |Edition 1.4 Application Server |
| | |
|WebSphere Application | |
|Server 4.0 | |
| | |
|JavaTMTM 2 Platform | |
|Enterprise Edition | |
|1.3/1.4 | |
| | |
|Sun ONE Application | |
|Server 6.x | |
| | |
|Sun ONE Web Server 6.0 | |
| | |
|JBoss Application Server | |
|3.0 | |
| | |
|Tomcat Web Server 4.1.12 | |
+--------------------------+--------------------------------+
|WebLogic Application |Sun JavaTMTM System Application |
|Server 5.1, 6.0, 6.1 |Server Platform Edition 8 |
| | |
|WebSphere Application | |
|Server 4.0 | |
| | |
|JavTMTMa 2 Platform | |
|Enterprise Edition | |
|1.3/1.4 | |
| | |
|Sun ONE Application | |
|Server 6.x | |
| | |
|Sun ONE Web Server 6.0 | |
| | |
|JBoss Application Server | |
|3.0 | |
| | |
|JBoss Application Server | |
|3.2 | |
| | |
|Tomcat Web Server 4.1.12 | |
+--------------------------+--------------------------------+
OPTIONS -h --help displays the arguments for launching the MigrationTool.
-v --version displays the version of the MigrationTool.
-u --ui invokes the tool in user interface mode.
-c --commandline invokes the tool in command-line mode.
-q --quiet launches the tool in quiet mode.
-d --debug launches the tool in debug mode.
-s --sourcedirectory identifes the directory where the source code to migrate or scan is present.
-S --sourceserver identifes the source application server of the applications to be migrated. Possible servers include:
o wl51: WebLogic Application Server 5.1
o wl60: WebLogic Application Server 6.0
o wl61: WebLogic Application Server 6.1
o as65: Sun ONE Application Server 6.5
o as70: Sun ONE Application Server 7.0
o ws40: WebSphere Application Server 4.0
o ri13: JavaTMTM 2 Platform Enterprise Edition 1.3
o ri14: JavaTMTM 2 Platform Enterprise Edition 1.3
o s1ws: Sun ONE Web Server
o jb30: JBoss Application Server 3.0
o tc41: Tomcat Application Server 4.1
-t --targetdirectory target or output directory where the migrated application should be placed.
-T --targetserver target application server to which the application is to be migrated.
-n --scan-native-apis-onlscans the source code only for the presence of application server specific proprietary APIs.
-p --scan-packages comma-separated list of Java packages to scan.
-j --java2db bypasses the creation of the sun-cmp-mapping.xml file. Instead, introduces the option argument into the sun-ejb-
jar.xml file. Option arguments are:
o create-tables: if set to true (default), creates tables at deploy. If set to false tables are not created.
o drop-tables: if set to true (default), tables are dropped at undeploy. If set to false tables are not dropped.
o db-vendor-name: name of the database vendor for the application to be migrated. Supported vendor names
include: Oracle, Sybase, DB2, Generic SQL92, PointBase, MSSQL.
-m --migrate-cmp migrates 1.1 compliant CMPs, if any, to 2.0. Option arguments are:
o overwrite-conflicting-accessors: if set to true (default), conflicting accessors are overwritten. If set to
false, conflicting accessors are not overwritten.
o comment-pk-modifiers: if set to true (default), setters of primary key are commented. If set to false, setters
of primary key are not commented.
-f --file-filter selects the type of files to migrate. Option arguments are:
o all-files: if specified and set to true (default), migrates all types of files.
o html-files: if specified and set to true (default), migrates HTML files.
o java-files: if specified and set to true (default), migrates Java files.
o jsp-files: if specified and set to true (default), migrates JSP type files.
o archive-files: if specified and set to true (default), migrates jar/ear/war/rar file types.
-a --append-logs if specified, appends the logging to the existing or previous logs without overwriting them. If not specified,
previous logs are overwritten.
operands identifes the archive file (jar/ear/war/rar) to be migrated.
SEE ALSO asupgrade(1M)J2EE 1.4 SDK March 2004 asmigrate(1m)