Hi All,
Please help me to find or remove files based on position based search pattern.
file1.txt:
aaabbbccc
dddeeefff
iiijjjkkk
file2.txt:
lllmmmnnn
ooopppqqq
rrrsssttt
file3.txt:
uuuvvvwww
xxxeeeyyy
zzzcccooo
From the above files, I like to delete the files that have "eee"... (1 Reply)
I have a file that will sometimes contain a pattern. The pattern is this:
W/D FRM CHK 00
I want to find any lines with this pattern, delete those lines, and also delete the line above and the line below. (1 Reply)
I have a file that will sometimes contain a pattern. The pattern is this:
FRM CHK 0000
I want to find any lines with this pattern, delete those lines, and also delete the line above and the line below. (4 Replies)
This is my first post, please be nice. I have tried to google and read different tutorials.
The task at hand is:
Input file input.txt (example)
abc123defhij-E-1234jslo
456ujs-W-abXjklp
From this file the task is to grep the -E- and -W- strings that are unique and write a new file... (5 Replies)
I would need a command for finding first 15000 of the file names whose 25th postion is 5 in the current directory alone.
I do have this painful command
find . -name '5*' | head -15000 | cut -c3-
please refine this.
Of course the above command also searches in the sub directories... (3 Replies)
Hi All,
I need help for doing the following.
I have a input file like:
aaaaaaaaaabbbbbbbbbbbbbbbbbbbb
cccbbbbbaaaaaadddddaaaabbbbbbb
now I am trying to generate a output csv file where i will have for e.g.
0-3 chars of each line as the first column in the csv, 4-10 chars of the line as... (3 Replies)
Hi,
I am able to get next line if it is matching a particular pattern. But i need a way to skip if next line also matches same pattern..
For example:
No Records
No Records
Records found
got it
Records found
Now i want to find 'Records found' after 'No Records' pattern matches..
... (5 Replies)
I have a file with 100 lines. On 50 th line , from position 5 to rest of the data , I need to change the occurrence of A to B and Occurrence of M to N.
Input file :
Line1
Line2
Line3
--
--
12345ABCDEFM
---
--
Line 100
Output
Line1
Line2 (40 Replies)
I've a file like this
{multi line
.......
.......
pattern}
{
some other stuff
.........
}
{multi line
.......
.......
pattern}
{
some other stuff
.........
}
and so on (2 Replies)
Discussion started by: aamir_raihan
2 Replies
LEARN ABOUT OSX
mecab
MECAB(1) MeCab MECAB(1)NAME
mecab - manual page for mecab of 0.95pre1
SYNOPSIS
mecab [options] files
DESCRIPTION
MeCab: Yet Another Part-of-Speech and Morphological Analyzer
Copyright(C) 2001-2007 Taku Kudo Copyright(C) 2004-2006 Nippon Telegraph and Telephone Corporation
-r, --rcfile=FILE
use FILE as resource file
-d, --dicdir=DIR
set DIR as a system dicdir
-u, --userdic=FILE
use FILE as a user dictionary
-l, --lattice-level=INT
lattice information level (default 0)
-D, --dictionary-info
show dictionary information and exit
-a, --all-morphs
output all morphs(default false)
-O, --output-format-type=TYPE
set output format type (wakati,none,...)
-p, --partial
partial parsing mode
-F, --node-format=STR
use STR as the user-defined node format
-U, --unk-format=STR
use STR as the user-defined unk format
-B, --bos-format=STR
use STR as the user-defined bos format
-E, --eos-format=STR
use STR as the user-defined eos format
-x, --unk-feature=STR
use STR as the feature for unknown word
-b, --input-buffer-size=INT
set input buffer size (default 8192)
-P, --dump-config
dump MeCab parameters
-C, --allocate-sentence
allocate new memory for input sentence
-N, --nbest=INT
output N best results (default 1)
-t, --theta=FLOAT
set temparature parameter theta (default 0.75)
-o, --output=FILE
set the output file name
-v, --version
show the version and exit.
-h, --help
show this help and exit.
mecab of 0.95pre1 March 2007 MECAB(1)