Using a for loop I am able to get the following log file below. I would like o change the format a bit as is indicated lower down. I have looked at awk and sed but somehow is not getting any joy. I am a bit new to ksh scripting. Please assist.
This is the format of my current log file after the... (1 Reply)
Discussion started by: hugow
1 Replies
2. Forum Support Area for Unregistered Users & Account Problems
We use AIX mailx or sendmail. How can I format a text file so that lotus notes users can see diferent fonts and highlighting. Or can a gif file (company logo..) be sent along with a text file and the Lotus notes user would see the logo and text displayed at the same time and not as an attachment? (0 Replies)
My little script for producing pseudo random file names works OK; but I need the file names to be formatted with zero padding, probably %05d
here's the script so far
#!/bin/bash
ls *.jpg > list
for i in `cat list`
do
rnd=$RANDOM
mv "$i" "$rnd"
done
I've been trying printf but can't... (2 Replies)
Dear All
I am facing problem while extracting data from below mention input file.
My op should be like this.Required field display in red in file.
Request you all to help.
OP:
RXOTX-46-5 1B4
RXOTX-46-4 2B5
INPUT FILE:
<RXMFP:MO=RXOTX-46-5;
RADIO X-CEIVER ADMINISTRATION... (4 Replies)
Dear all
I had input file as mention below and want op as mention.
Kindly let me knw possible ways.
Regards
Jaydeep
INPUT:
RXOTX-48-1
2A 34
2B 35
RXOTX-499-2
2C 32
RXOTX-4-1
2D 23
OUTPUT: (3 Replies)
Hi,
I am trying to format the output of my script in a tabular format
using the html code in my shell script.
I am using html code for the first time in a shell script.I am trying to execute this script in Ksh but it is not getting executed.
Can you please help me in figuring this out.... (6 Replies)
Hi,
I have a fixed length text file that needs to be cut into individual files in aix and facing padding issues. If I have multiple blank spaces in the file it is just making it one while cutting the files..
Eg:-
$ - blank space
filename:file.txt
... (2 Replies)
I have a text file with irregular spacing between values which makes it really difficult to manipulate. Is there an easy way to convert it into a space delimited text file so that all the spaces, double spaces, triple spaces, tabs between numbers are converted into spaces. The file looks like this:... (5 Replies)
Hi Experts,
I have a text exactly like below in a file:
id item_id
item_date prin_mkt_val
--------------------------- ---------------------------
------------------------------- ------------------------
... (1 Reply)
Hi,
I have a space delimited text file but I only want to change the first space to a tab and keep the rest of the spaces intact. How do I go about doing that? Thanks! (3 Replies)
Discussion started by: evelibertine
3 Replies
LEARN ABOUT DEBIAN
text::mecab::dict
Text::MeCab::Dict(3pm) User Contributed Perl Documentation Text::MeCab::Dict(3pm)NAME
Text::MeCab::Dict - Utility To Work With MeCab Dictionary
SYNOPSIS
use Text::MeCab::Dict;
my $dict = Text::MeCab::Dict->new(
dict_source => "/path/to/mecab-ipadic-source"
);
$dict->add(
surface => $surface, # XXX
left_id => $left_id, # XXXID
right_id => $right_id, # XXXID
cost => $cost, # XXX
pos => $part_of_speech, # XX
category1 => $category1, # XXXXX1
category2 => $category2, # XXXXX2
category3 => $category3, # XXXXX3
# XXX this below two parameter names need blessing from a knowing
# expert, and is subject to change
inflect => $inflect, # XXX
inflect_type => $inflect_type, # XXX
original => $original, # XX
yomi => $yomi, # XX
pronounce => $pronounce, # XX
extra => @extras, # XXXXXX
);
$dict->write('foo.csv');
$dict->rebuild();
METHODS
new
Creates a new instance of Text::MeCab::Dict.
The path to the source of mecab-ipadic is required:
my $dict = Text::MeCab::Dict->new(
dict_source => "/path/to/mecab-ipadic-source"
);
If you are in an environment where mecab-config is NOT available, you must also specify libexecdir, which is where mecab-dict-index is
installed:
my $dict = Text::MeCab::Dict->new(
dict_source => "/path/to/mecab-ipadic-source",
libexecdir => "/path/to/mecab/libexec/",
);
add
Adds a new entry to be appended to the dictionary. Please see SYNOPSIS for arguments.
write
Writes out the entries that were added via add() to the specified file location. If the file name does not look like an absolute path, the
name will be treated relatively from dict_source
rebuild
Rebuilds the index. This usually requires that you are have root privileges
SEE ALSO
http://mecab.sourceforge.net/dic.html
perl v5.14.2 2011-07-15 Text::MeCab::Dict(3pm)