Hi rovf...
Longhand OSX 10.12.1, default bash terminal.
As Don has suggeted with his code it works with the given sample and fine it is.
However...
As the OP hasn't given any reference to whether any variables are going to have other '=' in its string leading or otherwise then this could much more difficult than Don's solution.
I am not proficient enough on grep to solve it, but I see difficulties when they arrive.
For example: this for variable 'c' c=x=cat gives the result c=x . Although bash can accept it, doesn't mean a utility can without some serious thought. Who is to say that the OP's post doesn't have any number of '=' inside any one variable string.
As I don't know enough about the absolute subtleties of grep I will have to leave it to pros like Don et al to give their excellent advice...
IN a file I need to check for 3 patterns if all the 3 patterns are in the file. I need to send out an email. All this needs to be done in korn shell script. Please advise. (1 Reply)
Hi,
I have a log file which might have certain paragraphs.
Switch not possible Error code 1234
Process number 678
Log not available Error code 567
Process number 874
.....
......
......
Now I create an exception file like this.
cat text.exp
Error code 1234
Process number 874 (7 Replies)
In a directory, there are two different file extensions (*.txt and *.xyz) having similar names of numerical strings (*). The (*.txt) contains 5000 multiple files and the (*.xyz) also contains 5000 multiple files. Each of the files has around 4000 rows and 8 columns, with several unique string... (5 Replies)
I have a file name in $f. If $f has "-" at the beginning, or "=", or does not have extension ".ry" or ".xt" or ".dat" then cerr would not be empty.
Tried the following but having some problems.
set cerr = `echo $f | awk '/^-|=|!.ry|!.xt|!.dat/'` (4 Replies)
Hi Guys,
I have file like below, I want to print all lines between test1231233 to its 10 occurrence(till line 41)
test1231233
qwe
qwe
qweq123
test1231233
qwe
qwe
qweq23
test1231233
qwe
qwe
qweq123
test1231233
qwe
qwe
qweq123131 (3 Replies)
Hi,
I need to find records with a search string from a file. Search strings are provided in a file.
For eg. search_String.txt file is like below
chicago
mexico
newark
sanhose
and the file from where the records need to be fetched is given below
src_file:... (1 Reply)
Hi Experts
I need to match 2 patterns consecutively and display 25 lines after that.
1st one - Error
2nd one - End string ( comes along with the pattern one)
3rd one - error
Logic
grep "ERROR OCCURRED :" trace.log | awk -v "ES=:" -v "SS=java.lang.NullPointerException" '{
if($NF ~... (8 Replies)
Hi,
I have requirement to find the matching patterns of two files in Unix. One file is the log file and the other is the error list file. If any pattern in the log file matches the list of errors in the error list file, then I would need to find the counts of the match.
For example,
... (5 Replies)
Delete patterns matching
OS version: RHEL 7.3
Shell : Bash
I have a file like below (pattern.txt). I need to delete all lines starting with the following words (words separated by comma below) and ) character.
LOGGING, NOCOMPRESS, TABLESPACE , PCTFREE, INITRANS, MAXTRANS, STORAGE,... (3 Replies)
Discussion started by: John K
3 Replies
LEARN ABOUT DEBIAN
kumo-server
KUMO-SERVER(1) General Commands Manual KUMO-SERVER(1)NAME
kumo-server - kumofs server daemon
SYNOPSIS
kumo-server -m <addr[:port=19700]> -p <addr[:port19700]> -l <addr[:port=19800]> -s <path.tch>
DESCRIPTION
kumo-server stores actual data. You can add kumo-servers after buiding the cluster. You can get live status of the kumo-manager using
kumostat and kumotop command.
OPTIONS -l <addr[:port=19800]> --listen
listen address
-L <port=19900> --stream-listen
listen port for replacing stream
-f <dir=/tmp> --offer-tmp
path to temporary directory for replacing
-s <path.tch> --store
path to database
-m <addr[:port=19700]> --manager1
address of manager 1
-p <addr[:port=19700]> --manager2
address of manager 2
-S <number=20> --replicate-set-retry
replicate set retry limit
-D <number=20> --replicate-delete-retry
replicate delete retry limit
-gN <seconds=60> --garbage-min-time
minimum time to maintenance deleted key
-gX <seconds=3600> --garbage-max-time
maximum time to maintenance deleted key
-gS <kilobytes=2048> --garbage-mem-limit
maximum memory usage to memory deleted key
-k <number=2> --keepalive-interval
keepalive interval in seconds
-Ys <number=1> --connect-timeout
connect timeout time in seconds
-Yn <number=4> --connect-retry-limit
connect retry limit
-Ci <number=8> --clock-interval
clock interval in seconds
-TW <number=2> --write-threads
number of threads for asynchronous writing
-TR <number=4> --read-threads
number of threads for asynchronous reading
-o <path.log> --log
output logs to the file
-g <path.mpac> --binary-log
enable binary log
-v --verbose
-d <path.pid> --daemon
EXAMPLE
[on svr1 ]$ kumo-server -v -l svr1 -m mgr1 -p mgr2 -s /var/kumodb.tch -gN 5 -gS 20480
[on svr2 ]$ kumo-server -v -l svr2 -m mgr1 -p mgr2 -s /var/kumodb.tch -TR 6 -TW 4
[on svr3 ]$ kumo-server -v -l svr3 -m mgr1 -p mgr2 -s /var/kumodb.tch -Ci 16
[localhost]$ kumo-server -v -m localhost -l localhost:19801 -L 19901 -s ./database1.tch
[localhost]$ kumo-server -v -m localhost -l localhost:19802 -L 19902 -s ./database2.tch
[localhost]$ kumo-server -v -m localhost -l localhost:19803 -L 19902 -s ./database3.tch
SEE ALSO kumostat(1), kumotop(1), kumolog(1), kumomergedb(1), kumohash(1).
kumo-server July 2009 KUMO-SERVER(1)