... why it only works with egrep and not the normal grep
...
That's because of that pesky "+" character, which means "one or more occurrence" and is an extended regex and hence supported by egrep (extended grep). Check the man page for egrep in your system.
having a look on the regex site I saw that characters can be search using hex values
http://www.regular-expressions.info/characters.html
So I try to use it whith grep to find a è on a string (octal Decimal Hexa : 350 232 E8) but it doesn't work
E.g.
/usr/bin/echo '\0350' | egrep '\xE8'
... (0 Replies)
Hi,
I am trying to do something with grep, but for some reason I just can't get it to to work.
I am looking for find a match in the second field, the length must be 10 characters and end with 'abc'.
The file is in this format:
<int><tab><field2>
I've tried a few patterns, some work,... (2 Replies)
Hello everybody,
I'd like to know how is it I should write a regex in unix to match a string not followed by another string (anywhere in the line).
To be more specific, I want to find lines where "drop table" is found, but not followed anywhere in the line by the character "&".
For... (3 Replies)
Hi all,
I'm a beginner with linux, regex, grep, etc
I am trying to get data out of a file that has about 13,000 lines in this format
name - location
I want to grep all the names out to one file and the locations to another so I can put them into a spreadsheet.
Some have hyphenated... (14 Replies)
basically i have a csv i parse through. a user will supply me with a san switch he/she wants more info about... say the name is "pnj-sansw124"
now i can grep out every connection to that switch w/o issue because this sans switch pnj-sansw124 has multiple slots 1-10. and it looks like this in the... (5 Replies)
Hello,
I'm working on unix with grep (GNU grep) 2.5.1. I'm going through some of the newer regex syntax using Regular Expression Reference - Advanced Syntax a guide.
ls -aLl /bin | grep "\(x\)"
Which works, just highlights 'x' where ever, when ever.
I'm trying to to get (?:) to work but... (4 Replies)
Hi to you all,
I'm just struggling with a regex problem and I'm pretty sure that I'm missing sth obvious... :confused:
I need a regex to feed my grep in order to find lines that contain one string but not the other.
Here's the data example:
2015-04-08 19:04:55,926|xxxxxxxxxx| ... (11 Replies)
Hello guys,
Here i am writing a script in bash to check for a valid URL from a file using regex
This is my input file
http://www.yahoo.commmmmm
http://www.google.com
https://www.gooogle.co
www.test6.co.in
www.gmail.com
www.google.co
htt://www.money.com
http://eeeess.google.com... (2 Replies)
Hi everyone,
I'm looking for a grep command to match the following pattern from a file:
<EGS>10234567<EGS>
I used this following command to do this:
grep -E '^<EGS>{8}<EGS>' test.txt
In output I got:
<EGS>10234567<EGS>
Till now it work, but if I add something at the end of the line... (2 Replies)
Discussion started by: Arnaudh78
2 Replies
LEARN ABOUT DEBIAN
skk
LIBSKK(1) General Commands Manual LIBSKK(1)NAME
skk - program that emulates Japanese SKK input method
SYNOPSIS
skk [options]
DESCRIPTION
skk is a tool that reads key sequences from the standard input and converts them to Japanese text according to a Japanese input method
called SKK (Simple Kana to Kanji conversion program).
More information about the SKK input method itself can be found at: http://openlab.jp/skk/
OPTIONS
The skk command follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below.
-h, --help
Show summary of options.
-f, --file-dict=FILE
Specify path to a file dictionary.
-u, --user-dict=FILE
Specify path to a user dictionary.
-s, --skkserv=HOST:PORT
Specify host and port running skkserv.
-r, --rule=RULE
Specify typing rule.
-l, --list-rules
List typing rules.
EXAMPLE
echo "A i SPC" | skk
Converts a capital letter "A" followed by lowercase letter "i" and a space.
echo "K a p a SPC K a SPC" | skk
Converts a capital letter "K" followed by lowercase letters "a", "p", "a", and a space. Then converts a capital letter "K" followed
by "a" and a space.
echo "r k" | skk -r tutcode
Converts two lowercase letters "r" and "k" with TUT-Code typing rule.
echo "a (usleep 50000) b (usleep 200000)" | skk -r nicola
Converts two lowercase letters "a" and "b" typed with a 50000 micro seconds interval, and wait 200000 micro seconds, with NICOLA
typing rule.
AUTHOR
libskk was written by Daiki Ueno <ueno@unixuser.org>.
5 Jan 2012 LIBSKK(1)