@RudiC
while trying this.i got output as
I dont want words after 5th word of filename .i.e i want only
@Ravinder
as i told i dont want to hardcore any delimiter, in your solution
i will get correct result but if my filename has "-" instaed of "_" then also it will give me "_" as i have hardcoded it:
for eg: i have 2 files as
i want output as
appreciate your help so far, thanks
I am trying to write a script that prompts users for date and time, then process the gzip file into awk. During the ksh part of the script another file is created and needs to be processed with a different set of pattern matches then I need to combine the two in the end. I'm stuck at the part... (6 Replies)
It should be pretty simple but I'm just new to IDL and am workling through the command line and scripts(program.pro). If I want to save words to the bottom of a .ps file that I am putting a few plots in what should written in my code.
set_plot works for plots but apparently not words. Print... (0 Replies)
can u help me out to print last two words of each sentence of a file.
for example.
contents of input file:
i love songs
my favourite songs
sent
songs all kind
good buddy
Ouput file should contain:
love songs
favourite songs
sent
all kind
good buddy (5 Replies)
I'm trying to clean up my samba share and need to print the found file or print the path of the image it tried to searched for. So far I have this but can't seem to get the logic right. Can anyone help point me in the right direction?
for FILE in `cat list`; do
if ;
then
... (1 Reply)
Hi All,
I have searched the forum and tried to print only matching(pattern) words from the file, but its printing entire line. I tried with grep -w. I am on sunsolaris.
Eg:
cat file
A|A|F1|F2|A|F3|A
A|F10|F11|F14|A|
F20|A|F21|A|F25
I have to search for F (F followed by numbers) and ... (5 Replies)
hi everyone,
1.txt
981 I field1 > field2.a: aa, ..si01To:<f:a@a.com>From: <f:a@a.com>;tag=DVNgfRZBZRMi96 <f:a@1:333>;ZZZZZ: 12345
the output
field1 field2 <f:a@a.com>
the output is cut the string 3rd and 5th field, and get the value betwee "To:" and "From:", please advice.
... (1 Reply)
Hi,
Please suggest a way to print number of words in the end of each line.
<input file>
red aunt house
blue sky
bat and ball game
<output file>
red aunt house 3
blue sky 2
bat and ball game 4
Thanks! (2 Replies)
I can got the filename with this script. it's only show "-" in result.
cut -d , -f7 CSV_d.* | awk 'OFS=":"{print FILENAME,substr($1,1,8),substr($1,9,2),substr($1,11,2),substr($1,13,2)}' | sort |uniq (2 Replies)
Hi,
using awk command I want to print filenames and the last line of each file, in a single command line statement.
I want to use 'awk', because I want to add more functionality to this logic later.
I tried the following on *.sh files in the current directory
find . -type f -name "*.sh"... (26 Replies)
I have files named with different prefixes. From each I want to extract the first line containing a specific string, and then print that line along with the prefix.
I've tried to do this with a while loop, but instead of printing the prefix I print the first line of the file twice.
Files:... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
LEARN ABOUT DEBIAN
mbtg
mbtg(1) General Commands Manual mbtg(1)NAME
MBTG - Memory Based Tagger generator
SYNOPSYS
mbtg -T <filename> -s <setting filename>
or
mbtg [options]
DESCRIPTION
This programs generates, based on a tagged corpus, all the files needed to be able to tag a text with mbt.
OPTIONS -h or --help
show help
-T <tagged training corpus file>
or
-E <enriched tagged training corpus file>
All further options have reasonable defaults, so using them is only needed for the experienced user. See the mbt manual for more details.
-s settingsfile
mbtg creates this file, which can be used to run mbt with minimal effort. (like mbt -s settings -T somefile)
-p pattern
the pattern for known words (default ddfa)
-P pattern
the pattern for unknown words (default dFapsss)
-% <number>
filter threshold for ambitag construction (default 5%)
-l <lexiconfile>
-L <file with list of frequent words>
-r <ambitagfile>
-k <known words case base>
-u <unknown words case base>
-K <known words instances file>
-U <unknown words instances file>
-V or --version
show version info
-e <sentence delimiter> (default '<utt>')
-X
keep the intermediate files
-Otimbl options
(Note: there is NO SPACE between O and the options)
<options> classifier options for both known and unknown words instances bases
K: <options> classifier options for known words instance base
U: <options> classifier options for unknown words case base
valid timbl options are: a d k m q v w x -
BUGS
possibly
AUTHORS
Ko van der Sloot Timbl@uvt.nl
Antal van den Bosch Timbl@uvt.nl
SEE ALSO timbl(1)mbt(1)mbtserver(1)
2011 march 21 mbtg(1)