Sponsored Content
Top Forums Shell Programming and Scripting Moving line above possible? after pattern match? Post 302917959 by kenshinhimura on Friday 19th of September 2014 01:45:51 PM
Old 09-19-2014
Sir Singh, thank you
This User Gave Thanks to kenshinhimura For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed - Replace Line which contains the Pattern match with a new line

I need to replace the line containing "STAGE_DB" with the line "STAGE_DB $DB # database that contains the table being loaded ($workingDB)" Here $DB is passed during the runtime. How can I do this? Thanks, Kousikan (2 Replies)
Discussion started by: kousikan
2 Replies

2. UNIX for Dummies Questions & Answers

MATCH A PATTERN AND PRINT A LINE ABOVE AND BELOW

Dear All, Hv a very specific requirement. I have a very large text file and in which I have to match a pattern and insert a line above and below. Eg: My file cat test date1 date2 date3 date4 I need to match 'date3' and insert "Reminder1" above date3 and insert 'reminder2'... (4 Replies)
Discussion started by: gokulj
4 Replies

3. Shell Programming and Scripting

Print Line if next line Match a pattern

Hi All, Does anyone know how to print 1H1A....... in peal script print line ^1H1A....... if next line equal 5R0RECEIPT.... Thank for help:D Cat st.txt 1H1A-IN-11-5410-0009420|1010047766|dsds|1|N|IN|IN|000000|1||N|<<<line match 5R0RECEIPT| 5R0RECEIPT|... (2 Replies)
Discussion started by: kittiwas
2 Replies

4. Shell Programming and Scripting

pattern match and replace another pattern in same line

I have a pattern username:x:32005:32006::/usr/local/user:/bin/bash I need to match the line containing username and replace /bin/bash with /usr/local/my/bin/noshell So it becomes username:x:32005:32006::/usr/local/user:/usr/local/my/bin/noshell (7 Replies)
Discussion started by: anilcliff
7 Replies

5. Shell Programming and Scripting

I need to know how to replace a line after a pattern match with an empty line using SED

Hi How Are you? I am doing fine! I need to go now? I will see you tomorrow! Basically I need to replace the entire line containing "doing" with a blank line: I need to the following output: Hi How Are you? I need to go now? I will see you tomorrow! Thanks in advance.... (1 Reply)
Discussion started by: sags007_99
1 Replies

6. Shell Programming and Scripting

Print only next pattern in a line after a pattern match

I have 2013-06-11 23:55:14 1Umexd-0004cm-IG <= user@domain.com I need sed/awk operation on this, so that it should print the very next pattern only after the the pattern mach <= ie only print user@domain.com (7 Replies)
Discussion started by: anil510
7 Replies

7. Shell Programming and Scripting

Sed: how to merge two lines moving matched pattern to end of previous line

hello everyone, im new here, and also programming with awk, sed and grep commands on linux. In my text i have many lines with this config: 1 1 4 3 1 1 2 5 2 2 1 1 1 3 1 2 1 3 1 1 1 2 2 2 5 2 4 1 3 2 1 1 4 1 2 1 1 1 3 2 1 1 5 4 1 3 1 1... (3 Replies)
Discussion started by: satir
3 Replies

8. Shell Programming and Scripting

Rearrange or replace only the second line after pattern match or pattern match

Im using the command below , but thats not the output that i want. it only prints the odd and even numbers. awk '{if(NR%2){print $0 > "1"}else{print $0 > "2"}}' Im hoping for something like this file1: Text hi this is just a test text1 text2 text3 text4 text5 text6 Text hi... (2 Replies)
Discussion started by: invinzin21
2 Replies

9. Shell Programming and Scripting

Match Pattern and print pattern and multiple lines into one line

Hello Experts , require help . See below output: File inputs ------------------------------------------ Server Host = mike id rl images allocated last updated density vimages expiration last read <------- STATUS ------->... (4 Replies)
Discussion started by: tigerhills
4 Replies

10. Shell Programming and Scripting

awk to combine lines from line with pattern match to a line that ends in a pattern

I am trying to combine lines with these conditions: 1. First line starts with text of "libname VALUE db2 datasrc" where VALUE can be any text. 2. If condition1 is met then continue to combine lines through a line that ends with a semicolon. 3. Ignore case when matching patterns and remove any... (5 Replies)
Discussion started by: Wes Kem
5 Replies
DOVECOT(1)							      Dovecot								DOVECOT(1)

NAME
dovecot - a secure and highly configurable IMAP and POP3 server SYNOPSIS
dovecot [-Fp] [-c config-file] dovecot -a [-c config-file] dovecot -n [-c config-file] dovecot --build-options dovecot --help dovecot --hostdomain dovecot --version dovecot reload dovecot stop DESCRIPTION
Dovecot is an open source IMAP and POP3 server for Linux/UNIX-like systems, written with security primarily in mind. Dovecot is an excel- lent choice for both small and large installations. It's fast, simple to set up, requires no special administration and it uses very lit- tle memory. OPTIONS
-a Dump all configuration settings to stdout and exit successfully. The same as doveconf -a. -c config-file Start dovecot with an alternative configuration. -F Run dovecot in foreground, do not daemonize. -n Dump non-default settings to stdout and exit successfully. The same as doveconf -n. -p Prompt for the ssl key password for the configured ssl_key on startup. --build-options Show Dovecot's build options and exit successfully. --help Print a usage message to stdout and exit successfully. --hostdomain Shows the current host.domain name of the system. If the domain lookup should fail for some reason, only the hostname will be shown. --version Show Dovecot's version and exit successfully. COMMANDS
reload Force dovecot to reload its configuration. stop Shutdown dovecot and all its child processes. When shutdown_clients is set to no, existing sessions will continue to use the old settings, after a dovecot reload. Also all sessions will keep alive after a dovecot stop. By default all active sessions will be shut down. SIGNALS
Dovecot handles the following signals as described: HUP Force dovecot to reload its configuration. INT Shutdown dovecot and all its child processes. TERM Shutdown dovecot and all its child processes. USR1 Force dovecot to reopen all configured log files (log_path, info_log_path and debug_log_path). The signals ALARM and PIPE are ignored. FILES
/etc/dovecot/dovecot.conf Dovecot's main configuration file. /etc/dovecot/dovecot-ldap.conf.ext Dovecot's LDAP authdb/userdb module configuration file. /etc/dovecot/dovecot-sql.conf.ext Dovecot's SQL authdb/userdb module configuration file. /etc/dovecot/dovecot-dict-sql.conf.ext Dovecot's dict configuration with SQL-backend. /etc/dovecot/conf.d/auth-*-conf.ext Configuration files of different authentication modules. /etc/dovecot/conf.d/*.conf Configuration files of different services and settings. REPORTING BUGS
Report bugs, including doveconf -n output, to the Dovecot Mailing List <dovecot@dovecot.org>. Information about reporting bugs is avail- able at: http://dovecot.org/bugreport.html AUTHOR
Dovecot <http://dovecot.org> and its manual pages were written by the Dovecot authors <http://dovecot.org/doc/AUTHORS>, mainly Timo Sir- ainen <tss at iki.fi>, and are licensed under the terms of the MIT and LGPLv2.1 licenses, see <http://dovecot.org/doc/COPYING> for details. SEE ALSO
doveadm(1), doveconf(1), dovecot-lda(1), dsync(1) Dovecot v2.2 2013-08-06 DOVECOT(1)
All times are GMT -4. The time now is 08:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy