07-13-2008
sorry i tried searching but i couldn't find the desired result. may be i was not searching proper way . Many thanks mate ..
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have an dir which has 50K file, some of them are empty. I want to delete the empty file from the dir. I am planning to use the following command.
ls -l | grep " 0 " | awk '{print $9}'
I can copy this to an file and then how do I use this file to delete the empty files.... Any help... (2 Replies)
Discussion started by: Script40
2 Replies
2. Shell Programming and Scripting
Dear friends, following is the output of a script from which I want to remove spaces and new-line characters.
Example:-
Line1 abcdefghijklmnopqrstuvwxyz
Line2 mnopqrstuvwxyzabcdefghijkl
Line3 opqrstuvwxyzabcdefdefg
Here in above example, at every starting line there is a “tab” &... (4 Replies)
Discussion started by: anushree.a
4 Replies
3. Shell Programming and Scripting
Hi,
I need a command in UNIX KSH below is the description...
MAPPING DESCRIPTION ="Test Mapping for the calid inputs" ISVALID ="YES" NAME ="m_test_xml" OBJECTVERSION ="1" VERSIONNUMBER ="1"
unix ksh command to read the DESCRIPTION and write to a file
Test Mapping for the calid inputs... (3 Replies)
Discussion started by: perlamohan
3 Replies
4. Shell Programming and Scripting
Hi All,
If anybody could help me with my scenario here. I have a statement file. Example of some content:
DATE DESC Debit Credit Total Rate
02-Jan-08 Lodgement 200.00 1200.00 2.51
14-Sep-07 Withdrawal 50.00 1000.00 ... (8 Replies)
Discussion started by: yonez
8 Replies
5. Shell Programming and Scripting
How to delete all leading empty lines in a file?
$>cat input.txt
test
Test
$>
output file should be
test
Test
$> (14 Replies)
Discussion started by: johnveslin
14 Replies
6. Shell Programming and Scripting
The "read" command, which is built into bash, takes words from the standard input. However, "read" is not good at taking file names if the file names contain spaces. I would like my bash script to ask the user to enter file names, which may contain spaces. Can you think about any technique for... (14 Replies)
Discussion started by: LessNux
14 Replies
7. Shell Programming and Scripting
Platform: Oracle Linux 6.5
I have a file with hundreds of values enclosed in single quotes like below. I want the trailing empty spaces before the ending quote to be removed. Expected output shown below. Can this be done using good old vi editor ? Or should I use sed or awk for this ?
$ cat... (4 Replies)
Discussion started by: kraljic
4 Replies
8. Shell Programming and Scripting
Hello,
I am trying to remove everything coming after empty line under ubuntu14.04.
How may I do it?
file:
aaa
020390
bb00id3
c03wisi
209dl
x092sia
0290s
I expect:
aaa
020390
bb00id3
c03wisi (3 Replies)
Discussion started by: baris35
3 Replies
LEARN ABOUT DEBIAN
plucene::analysis::porterstemfilter
Plucene::Analysis::PorterStemFilter(3pm) User Contributed Perl Documentation Plucene::Analysis::PorterStemFilter(3pm)
NAME
Plucene::Analysis::PorterStemFilter - Porter stemming on the token stream
SYNOPSIS
# isa Plucene::Analysis:::TokenFilter
my $token = $porter_stem_filter->next;
DESCRIPTION
This class transforms the token stream as per the Porter stemming algorithm.
Note: the input to the stemming filter must already be in lower case, so you will need to use LowerCaseFilter or LowerCaseTokenizer farther
down the Tokenizer chain in order for this to work properly!
The Porter Stemmer implements Porter Algorithm for normalization of English words by stripping their extensions and is used to generalize
the searches. For example, the Porter algorithm maps both 'search' and 'searching' (as well as 'searchnessing') to 'search' such that a
query for 'search' will also match documents that contains the word 'searching'.
Note that the Porter algorithm is specific to the English language and may give unpredictable results for other languages. Also, make sure
to use the same analyzer during the indexing and the searching.
You can find more information on the Porter algorithm at www.tartarus.org/~martin/PorterStemmer.
A nice online demonstration of the Porter algorithm is available at www.scs.carleton.ca/~dquesnel/java/stuff/PorterApplet.html.
METHODS
next
my $token = $porter_stem_filter->next;
Returns the next input token, after being stemmed.
perl v5.12.4 2011-08-14 Plucene::Analysis::PorterStemFilter(3pm)