Hi All
I need help writing a Java program to split strings reading from a FILE and writing output into a FILE. e.g.,
My input is :
International NNP
Rockwell NNP
Corp. NNP
's POS
Tulsa NNP
unit NN
said VBDExpected output is:
International I In Int Inte l al... (2 Replies)
Hello guys,
should be a very easy questn for you:
I need to delete strings in file1 based on the list of strings in file2.
like file2:
word1_word2_
word3_word5_
word3_word4_
word6_word7_
file1:
word1_word2_otherwords..,word3_word5_others... (7 Replies)
hello,
I had posted earlier help for a script for splitting concatenated words . The script was supposed to read words from a master file and split concatenated words in the slave/input file.
Thanks to the help I got, the following script which works very well was posted. It detects residues by... (14 Replies)
The question is not as simple as the title... I have a file, it looks like this
<string name="string1">RZ-LED</string>
<string name="string2">2.0</string>
<string name="string2">Version 2.0</string>
<string name="string3">BP</string>
I would like to check for duplicate entries of... (11 Replies)
hi
i have a requirement to input a string to a shell script and to split the string to multiple fields,
the string is copied from a row of three columns (name,age,address) in an excel sheet.
the three columns (from excel) are seperated with a tab when pasted in the command prompt, but when the ... (2 Replies)
Hi All,
There is a file with a data. If the line is longer than 'n', we splitting the line on the parts and print them. Each of the parts is less than or equal 'n'.
For example:
n = 2;
"ABCDEFGHIJK" -> length 11
Results:
"AB" "CD" EF" GH" "IJ" "K"
Code, but there are some errors.... (9 Replies)
I have a file that has two columns. I first column is an identifier and the second is a column of strings. I want to split the characters in the second column into substrings of length 5. So if the first line of the file has a string of length 10, the output should have the identifier repeated 2... (3 Replies)
i have a snippet from server log delimited by forward slash.
/a/b/c/d/filename
i need to cut until last delimiter. So desired output should look like:
/a/b/c/d
can you please help?
Thanks in advance. (7 Replies)
Dear all,
I have a data like below (n of rows=400,000) and I want to extract the rows with certain strings. I use code below. It works if there is not too many strings for example n of strings <5000. while I have 90,000 strings to extract. If I use the egrep code below, I will get error:
... (3 Replies)
Hello Everyone ,
Iam a newbie to shell programming and iam reaching out if anyone can help in this :-
I have two files
1) Insert.txt
2) partition_list.txt
insert.txt looks like this :-
insert into emp1 partition (partition_name)
(a1,
b2,
c4,
s6,
d8)
select
a1,
b2,
c4, (2 Replies)
Discussion started by: nubie2linux
2 Replies
LEARN ABOUT SUSE
textutil_string
textutil::string(n) Text and string utilities, macro processing textutil::string(n)
__________________________________________________________________________________________________________________________________________________NAME
textutil::string - Procedures to manipulate texts and strings.
SYNOPSIS
package require Tcl 8.2
package require textutil::string ?0.7?
::textutil::string::chop string
::textutil::string::tail string
::textutil::string::cap string
::textutil::string::uncap string
::textutil::string::longestCommonPrefixList list
::textutil::string::longestCommonPrefix ?string...?
_________________________________________________________________DESCRIPTION
The package textutil::string provides miscellaneous string manipulation commands.
The complete set of procedures is described below.
::textutil::string::chop string
A convenience command. Removes the last character of string and returns the shortened string.
::textutil::string::tail string
A convenience command. Removes the first character of string and returns the shortened string.
::textutil::string::cap string
Capitalizes the first character of string and returns the modified string.
::textutil::string::uncap string
The complementary operation to ::textutil::string::cap. Forces the first character of string to lower case and returns the modified
string.
::textutil::string::longestCommonPrefixList list
::textutil::string::longestCommonPrefix ?string...?
Computes the longest common prefix for either the strings given to the command, or the strings specified in the single list, and
returns it as the result of the command.
If no strings were specified the result is the empty string. If only one string was specified, the string itself is returned, as it
is its own longest common prefix.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category textutil
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
SEE ALSO
regexp(n), split(n), string(n)
KEYWORDS
capitalize, chop, common prefix, formatting, prefix, string, uncapitalize
textutil 0.7 textutil::string(n)