11-03-2005
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Friends,
I have to create a new log file everyday and append it with content based on some keywords found in another log file.
Here is what I have tried so far...
grep Error /parentfolder/someLogFile.log >> /parentfolder
/Archive/"testlogfile_error_`date '+%d%m%y'`.txt"
grep error... (6 Replies)
Discussion started by: supreet
6 Replies
2. Shell Programming and Scripting
Hi all,
I am looking for a coomand to search for the keywords in susequenct lines. Keyword1 in a line and Keyword2 in the very next line.
Once i found the combination ineed to print the lines with patterns and the line above and one below.
I am giving an example here: Keywords are :ERROR and... (12 Replies)
Discussion started by: rdhanek
12 Replies
3. UNIX for Advanced & Expert Users
I have an application that runs on the server with root privileges and all emails it sends get sent to root (errors, logs, etc), when they should actually go to one of application admins.
I would like to separate these emails from the OS related one sent to root and forward them to that... (2 Replies)
Discussion started by: vostrushka
2 Replies
4. Shell Programming and Scripting
the thing which i require is very very complex.. i tried hard to find the solution but couldnt..
the thing i need to achieve is say i have a file
cat delta.sql
CREATE VIEW Austin
Etc etc
.
.
.
CREATE VIEW Barabara
AS
SELECT blah blah blah
FROM Austin z, Cluster s, Instance i
WHERE... (4 Replies)
Discussion started by: vivek d r
4 Replies
5. Shell Programming and Scripting
Hi Guys,
I have the following problem. I have original file (org.txt) that looks like this
module v_1(.....)
//arbitrary number of text lines
endmodule
module v_2(....)
//arbitrary number of text lines
endmodule
module v_3(...)
//arbitrary number of text lines
endmodule
module... (6 Replies)
Discussion started by: kaaliakahn
6 Replies
6. Shell Programming and Scripting
Hello!
I'm trying to process a text file and am stuck at 2 extractions. Hoping someone can help me here:
1. Given a line in a text file and given a keyword, how can I extract the word preceeding the keyword using a shell command/script?
For example: Given a keyword "world" in the line: ... (2 Replies)
Discussion started by: seemad
2 Replies
7. Shell Programming and Scripting
Hi,
I have a file that contains a lot of lines that are repetitive. I am interested in grepping the following section which is repetitive.
:::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::
<Address>
<Street>xxxy</Street>
... (3 Replies)
Discussion started by: jakSun8
3 Replies
8. Shell Programming and Scripting
I am starting to write a multi-line awk and using the file below which is
tab-delimited, print only the line with oncomineGeneClass
and oncomineVariantClass and PASS. The script execute but
seems to be printing the entire file, not the desired line. Thank you :).
file
... (8 Replies)
Discussion started by: cmccabe
8 Replies
9. Shell Programming and Scripting
I need to split the file contents with multiple rows based on patterns
Sample:
Input:
ABC101testXYZ102UKMNO1092testing
ABC999testKMNValid
Output:
ABC101test
XYZ102U
KMN1092testing
ABC999test
KMNValid
In this ABC , XYZ and KMN are patterns
Continue here./mod]
Please read forum... (1 Reply)
Discussion started by: Jairaj
1 Replies
10. UNIX for Beginners Questions & Answers
I need to split the file contents with multiple rows based on patterns
Sample:
Input:
ABC101testXYZ102UKMNO1092testing
ABC999testKMNValid
Output:
ABC101test
XYZ102U
KMN1092testing
ABC999test
KMNValid
In this ABC , XYZ and KMN are patterns (6 Replies)
Discussion started by: Jairaj
6 Replies
LEARN ABOUT DEBIAN
maildirkw
MAILDIRKW(1) Double Precision, Inc. MAILDIRKW(1)
NAME
maildirkw - set maildir message keywords
SYNOPSIS
maildirkw [-c] [-l] [-a] [-r] {maildir} {message} [keyword...]
maildirkw [-c] {-L} {maildir}
DESCRIPTION
maildirkw modifies the Courier IMAP server compatible maildir message keywords. This command allows an easy way to set or clear custom IMAP
keywords associated with a particular message. maildir is the pathname to a maildir, or a maildir folder. The -L option lists all messages
in the maildir, and their associated keywords. message specified which message's keywords should be set. One or more keywords specifies a
list of keywords to be set for this message. The specified list of keywords replaces any keywords presently set for the message, unless the
-a or the -r option is specified.
The -a option adds the keyword to existing keywords that are set for message. The -r removes keywords from message, leaving any remaining
keywords set in place.
The -l should be used if the Courier IMAP server's configuration file has the IMAP_USELOCKS option set. -l enables a compatible locking
mechanism to update the message's keywords.
-c enables case-sensitive keywords. IMAP keywords are normally case insensitive. -c needs to be used if the SMAP1[1] protocol extension is
used, which uses case sensitive keywords.
SEE ALSO
maildiracl(1)[2], maildirmake(1)[3].
AUTHOR
Sam Varshavchik
Author
NOTES
1. SMAP1
http://www.courier-mta.org/cone/smap1.html
2. maildiracl(1)
[set $man.base.url.for.relative.links]/maildiracl.html
3. maildirmake(1)
[set $man.base.url.for.relative.links]/maildirmake.html
Courier Mail Server 08/31/2011 MAILDIRKW(1)