Seems like you don't like the short approach - anyhow...
If you really want to distinguish between all possibilities of occurrences of your keywords, try
Hi,
When we "grep" for a word in a file, it returns the lines containing the word that we searched for. Is there a way to display only the words and not the entire line containing them.
Thanks
Ananth (6 Replies)
hi, consider the below line in a text file,
'Y',getdate(),'N','V',NULL .....
'N',getdate(),'Y','D',NULL .....
'Y','N','Y',getdate(),'Y','D',NULL ....
as u see above, i want only the second word after the getdate() word...
getdate() will not come 2nd word alwys it may be any position but i... (11 Replies)
ok, so this is proving to be kind of difficult even though it should not be.
say for instance I want to grep out ONLY the word fkafal from the below output, how do I do it?
echo ajfjf fjfjf iafjga fkafal foeref afoafahfia | grep -w "fkafal"
If i run the above command, i get back all the... (4 Replies)
HI,
Let us a consider i have a file as following.
abcde (flag5 / 234 ) Mod 45 efgh
afghd (flag3/ 343) MOD 34 ghdd
tryd (t_flag6/ 567 ) MOD 43 uifudiu
Is there a way where I need only the flag and the calculation done on it.
The output should be :
(flag5 / 234 ) Mod 45 ... (8 Replies)
Hi,
I have input file as below. Can you help me?
inac_4y;0;2;Balance;200;1;1;
0;2;Balance;100;1;
0;inac_nq;0;1;Balance;100;1
desired output
Balance;200
Balance;100
Balance;100
-Suresh
Please use and tags when posting code, data or logs etc. to preserve formatting... (5 Replies)
Hi all,
FileOne
family balance >>>>>
0 0
0 0
java.io.FileNotFoundException: Settings.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
..
....
.....
.....
java.lang.NullPointerException
...
.....
......
Stacktrace:
at... (2 Replies)
Hi
can we grep for a word and print the next word of the greped word?
ex:- create or replace function function_name
create function function_name
we should search for word "function" and output next word "function_name" from both lines. (3 Replies)
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Hi,
Below is an example :
ST1 PREF: int1 AVAIL: int2
ST2 PREF :int1 AVAIL: int2
I need int1 to come in preferred variable while programming and int2 in available variable
Please help me doing so
Best regards,
Vishal (10 Replies)
I have a file "test" with following contents:
cat test
abc
abcd_efg
abc_abc
I want to only grep for abc or abc_ without getting other results, how do I achieve this?
If I use grep -w abc test option I get only abc and not abc_.
If I use egrep "abc|abc_" test its still printing... (3 Replies)
Discussion started by: ctrld
3 Replies
LEARN ABOUT SUNOS
create-javamail-resource
asadmin-create-javamail-resource(1AS) User Commands asadmin-create-javamail-resource(1AS)NAME
asadmin-create-javamail-resource, create-javamail-resource - registers the JavaMail resource
SYNOPSIS
create-javamail-resource --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile file-
name] [--terse=false] [--echo=false] [--interactive] --mailhost hostname --mailuser username --fromaddress address [--storeprotocol imap]
[--storeprotocolclass com.sun.mail.imapIMAPStore] [--transprotocol smtp] [--transprotocolclass com.sun.mail.smtp.SMTPTransport]
[--debug=false][--enabled=true] [--description text] [--property (name=value)[:name=value]*] jndi_name
Registers the Javamail resource. This command can only be run remotely.
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.
--echo setting to true will echo the command line statement on the standard output.
--interactive prompts you for the required options that are not already specified.
--mailhost mail server host.
--mailuser mail account user name.
--fromaddress email address.
--storeprotocol mail server stored protocol.
--storeprotocolclass mail server stored protocol class name.
--transprotocol mail server transport protocol.
--transprotocolclass mail server transport protocol class name.
--debug if set to true, server startsup in debug mode for this resource.
--enabled determines whether the resource is enabled at runtime.
--description text description of the Javamail resource.
--property optional attribute name/value pairs for configuring the Javamail resource.
OPERANDS
jndi_name JNDI name of the Javamail resource to be created.
Example 1: Using create-javamail-resource
asadmin> create-javamail-resource --user admin
--password adminadmin --host fuyako --port 7070 --mailhost localhost
--mailuser sample --fromaddress sample@sun.com mail_resourc/MyMailSession
Command create-javamail-resource executed successfully
Where: mail/MyMailSession is the JavaMail resource created. The escape character () is used in the --fromaddress option to distinguish the
dot (.) and at sign (@). The JNDI name for a JavaMail resource customarily includes the mail/ naming subcontext.
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-delete-javamail-resource(1AS), asadmin-list-javamail-resources(1AS)J2EE 1.4 SDK March 2004 asadmin-create-javamail-resource(1AS)