ghostdog, that works perfectly. except, i have other file names that DON'T have the S after the 4 numbers. How could I retrieve the first 4 numbers after the C (regardless of what comes after the numbers?)
I'm trying to parse RichText to XML. I want to be able to capture everything between the '/par' tag in the RTF but not include the tag itself. So far all I have is this, '.*?\\par' but it leaves '\par' at the end of it. Any suggestions? (1 Reply)
Hello,
Let say I have a string with content "Free 100%". How can extract only "100" using ksh? I would this machanism to work if instead of "100" there is any kind of combination of numbers(ex. "32", "1238", "1"). I want to get only the digits.
I have written something like this:
... (4 Replies)
Hi, I am a new bee to this forum.
I am trying to extract the text after a matching pattern from a url using regular expression.
Ex: http://locatlhost:2020/proxy/checkthisout
I want to extract the string after proxy/. I am not familiar with reg ex. Can someone please help? (2 Replies)
In regular expressions with grep(or egrep), ^ works if we want something in starting of line..but what if we write ^^^ or ^ for pattern matching??..Hope u all r familiar with regular expressions for pattern matching.. (1 Reply)
what elements does " /^/ " match?
I did the test which indicates that it matches single lowercase character like 'a','b' etc. and '1','2' etc.
But I really confused with that. Because, "/^abc/" matches strings like "abcedf" or "abcddddee".
So, what does caret ^ really mean?
Any response... (2 Replies)
I have a file that I'm trying to find all the cases of phone number extensions and deleting them. So input file looks like:
abc
x93825
def
13234
x52673
hello
output looks like:
abc
def
13234
hello
Basically delete lines that have 5 numbers following "x". I tried: x\(4) but it... (7 Replies)
I am new to shell scripts.Can u please help me on this req.
test_user = "Arun"
if
echo "test_user is a word"
else
echo "test_user is not a word" (1 Reply)
I am trying to print columns from a table whose name (header) matches a certain string.
E.g.,
patient1001 patient1002 patient2005 patient3005 patient4001
0 0 0 0 0
2 9 2 8 3
2 7 3 0 2
Say I want to print columns whose names end with "01"
patient1001 patient4001
0 0
2 3
2 2
... (3 Replies)
hi
i am trying to extract some specific data out of a text file using regular expressions with shell script
that is using a multiline grep .. and the tool i am using is pcregrep so that i can get compatibility with perl's regular expressions
for a sample data like this, i am trying to grab... (6 Replies)
Discussion started by: vemkiran
6 Replies
LEARN ABOUT OSF1
wnnstat
wnnstat(1) User Commands wnnstat(1)NAME
wnnstat - Print the status of Wnn6 Kana-Kanji conversion server
SYNOPSIS
/usr/bin/wnnstat [-w] [-e] [-E] [-f] [-F] [-d] [-D] [-J | -U | -S | -T] [-L language] [hostname]
DESCRIPTION
wnnstat prints the status of Wnn6 Kana-Kanji conversion server (jserver) running on the specified host (hostname). If the host name is
omitted, one from which wnnstat was launched is assumed.
OPTIONS
The following options are available.
-w Prints the user names, host names, socket numbers, and environment numbers.
-e Prints the environment numbers, environment names, and number of references.
-E Prints the environment numbers, environment names, number of references, auxiliary words, number of dictionaries (dictionary
numbers) and file names.
-f Prints the dictionary file identifier (Fid), type, location, number of references, and file names.
-F Prints the dictionary file identifier (Fid), type, location, number of references, and file names.
-d Prints the dictionary numbers, types, nicknames, the dictionary file identifier (Fid), and file names.
-D Prints the dictionary numbers, types, number of words, update disables, frequency file update disables, usage disables, priori-
ties, [nicknames], the dictionary file identifier (Fid), file names, and [(frequency: frequency_file_name)] [password, (fre-
quency_password)].
-U Prints in Japanese EUC (UJIS).
-J Prints in JIS code.
-S Prints in SJIS code.
-T Prints in UTF--8 code.
-L languaPrints the status of the server that supports the language specified with language . -L ja should be specified for Solaris (Japa-
nese version) releases.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWjwncu |
+-----------------------------+-----------------------------+
SEE ALSO jserver(1M)SunOS 5.10 2 Mar 1998 wnnstat(1)