Hi,
I tried with the above perl command, but its thowring error.
where my xml file contains,
and the patterns which i want to search are placed in a txt file, contains,
Now i want to print the next line of xml file using the above patterns and save it to another file.
Please help me out from this issue..
---------- Post updated at 12:37 AM ---------- Previous update was at 12:36 AM ----------
the logic has to be work in AIX server..
Last edited by Franklin52; 06-07-2012 at 03:59 AM..
Reason: Please use code tags
how can I search for two or more patterns in one line using grep?
for example if I want to show only the lines that have patterns "abc" and "123"?
and what if I want to show only the lines that have either "abc" or "123" in them?
any hint apprecited (4 Replies)
Hi Gurus,
I have a file say for ex. file1 which has 3500 lines in it which are different account numbers and another file (file2) which has 230000 lines in it. I want to read all the lines in file1 and delete all those lines from file2 which has that same pattern as in file1. I am not quite... (4 Replies)
Dear all,
I need to search multiple patterns and then I need to print their respective next lines. For an example, in the below table, I will look for 3 different patterns :
1) # ATC_Codes:
2) # Generic_Name:
3) # Drug_Target_1_Gene_Name:
#BEGIN_DRUGCARD DB00001
# AHFS_Codes:... (3 Replies)
Hi,
I am having an '.xml' file with 'n' number of lines and also having another file with '.txt' format contains values which i want to search.
Now I want to print the next line with the pattern which i am searching in '.xml' file. And the loop has to repeat for different patterns which... (5 Replies)
Hi,
I am trying to fetch the different values in an xml file by searching with the same variable in AIX Server.
<name>SharedResources/Shared/JNDI/Username</name>
<value>admin</value> <name>SharedResources/Shared/JNDI/Username</name>
... (1 Reply)
Hi,
I am trying to print multiple patterns in a line using sed. But it is printing only the last occurance of a pattern.
If the line is
the the output should be
Lookup Procedure|Stored proc
But the output I am getting is
Stored proc
The code I am using is
echo... (9 Replies)
Hello Friends,
I need to print lines in between two string when a keyword existed in those lines (keywords like exception, error, failed, not started etc).
for example,
input:
..
Begin Edr
ab12
ac13
ad14
bc23
exception occured
bd24
cd34
dd44
ee55
ff66
End Edr (2 Replies)
Hi,
I am trying to extract some patterns from a line. The input file is space delimited and i could not use column to get value after "IN" or "OUT" patterns as there could be multiple white spaces before the next digits that i need to print in the output file . I need to print 3 patterns in a... (3 Replies)
Hi,
I could only find examples to print line before/after a match, but I'd need to print line after two separate lines matching.
E.g.: From the below log entry, I would need to print out the 1234. This is from a huge log file, that has a lot of entries with "CLIENT" and "No" entries (+ other... (3 Replies)
My input looks like this.
# Lot Of CODE Before
AppType_somethinglese=$(cat << EOF
AppType_test1='test-tool/blatest-tool-ear'
AppType_test2='test/blabla-ear'
# Lot Of CODE After
I want to print text betwen 1) _ and = and 2)/ and ' from each line
and exclude lines with "EOF".
Output... (2 Replies)
Discussion started by: kchinnam
2 Replies
LEARN ABOUT SUNOS
asadmin-create-connector-resource
asadmin-create-connector-resource(1AS) User Commands asadmin-create-connector-resource(1AS)NAME
asadmin-create-connector-resource, create-connector-resource - registers the resource with the specified JNDI name
SYNOPSIS
create-connector-resource --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile
filename] [--terse=false] [--echo=false] [--interactive=true] --poolname connector_connection_pool_name [--enabled=true] [--description
description] jndi_name
Registers the resource with the specified JNDI name. The connector connection pool must already exist. This command is supported in remote
mode only.
OPTIONS --user authorized domain application server administrative username.
--password password to administer the domain application server.
--host machine name where the domain application server is running.
--port port number of the domain application server listening for administration requests.
--secure if true, uses SSL/TLS to communicate with the domain application server.
--passwordfile file containing the domain application server password.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script. Default is false.
--echo setting to true will echo the command line statement on the standard output. Default is false.
--interactive if set to true (default), only the required password options are prompted.
--poolname name of the connection pool connector resource. If two or more resource elements point to the same connection pool
element, they will use the same pool connections at runtime.
--enabled determines whether the resource is enabled at runtime. If a resource is not enabled, you are not able to use the
resource. Use the set command to enable or disable resources.
--description text description of the connection pool.
OPERANDS
jndi_name JNDI name of the resource to be created.
Example 1: Using the create-connector-resource command
Execute the example described for create-connector-connection-pool command before trying out this example.
asadmin> create-connector-resource --user admin1 --password adminadmin1
--host pigeon --port 5001 --poolname jms/qConnPool --description
"creating a sample connector resource" jms/qConnFactory
Command create-connector-resource executed successfully
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-delete-connector-resource(1AS), asadmin-list-connector-resources(1AS)J2EE 1.4 SDK March 2004 asadmin-create-connector-resource(1AS)