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 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)
Hi,
I have multiple files in my log folder. e.g:
a_m1.log
b_1.log
c_1.log
d_1.log
b_2.log
c_2.log
d_2.log
e_m1.log
a_m2.log
e_m2.log
I need to keep latest 10 instances of each file.
I can write multiple find commands but looking if it is possible in one line.
m file are monthly... (4 Replies)
i have a file where the hostnames and variables are in same line in below format, am able extract some part variables while otherlike subscriptions and handler is missing.
can you please correct me if grep is able to perform this ?
cat /tmp/test
localhost subscriptions='' handler="genie"... (14 Replies)
Discussion started by: rakeshkumar
14 Replies
LEARN ABOUT DEBIAN
globus-rls-admin
globus-rls-admin(8) System Manager's Manual globus-rls-admin(8)NAME
globus-rls-admin - Replica Location Service Administration
SYNOPSIS
globus-rls-admin -A|-a|-C option value|-c option|-D|-d|-e|-p|-q|-r|-S|-s|-t timeout|-u|-v [ rli ] [ pattern ] [ server ]
DESCRIPTION
The program globus-rls-admin performs administrative operations on a RLS server (see globus-rls-server(8)).
OPTIONS -A Add rli to list of RLI servers updated by an LRC server using Bloom filters. Note that partitions are not supported with Bloom fil-
ters, the LRC server maintains one Bloom filter for all LFNs in its database, which is sent to all RLI servers configured to receive
Bloom filter updates with this option.
-a Add rli and optionally pattern to the list of RLI servers that the LRC server sends updates to (using a list of LFNs). If pattern
is specified then only LFNs matching it will be sent to rli. If rli is added with no patterns, then it is sent all updates. Pat-
tern matching is done using standard Unix file globbing (see fnmatch(3) or sh(1)).
-C option value
Set server option to value. Note this does not update the configuration file, the next time the server is restarted the configura-
tion change will be lost.
-c option
Retrieve configuration value for specified option from server. If option is "all" then all options are retrieved.
-D Remove rli and pattern from list of RLI servers that the RLI server sends updates to. If pattern is not specified then all entries
for rli are removed. Note if all patterns are removed separately then rli is sent all updates. To stop any updates from being sent
to rli do not specify pattern
-d Remove rli and pattern from list of RLI servers that the LRC server sends updates to. If pattern is not specified then all entries
for rli are removed. Note if all patterns are removed separately then rli is sent all updates. To stop any updates from being sent
to rli do not specify pattern
-e Clear LRC database. Removes all lfn,pfn mappings.
-p Verifies that the server is responding.
-q Cause RLS server to exit.
-r Add rli and optionally pattern to the list of RLI servers that the RLI server sends updates to. If pattern is specified then only
LFNs matching it will be sent to rli. If rli is added with no patterns, then it is sent all updates. Pattern matching is done
using standard Unix file globbing (see fnmatch(3) or sh(1)).
-S Show statistics and other information gathered by RLS server. Intended to be input into GRIS.
-s Show list of RLI servers and patterns being sent updates by the LRC server. If rli or pattern are not specified they are considered
wildcards.
-t timeout
Set timeout (in seconds) for RLS server requests. Default is 30 seconds.
-u Cause LRC server to immediately start full softstate updates to any RLI servers previously added with the -a option.
-v Show version and exit.
SEE ALSO globus-rls-server(8), globus_rls_client man pages
23 Apr 02 globus-rls-admin(8)