Sponsored Content
Full Discussion: Need Help on Grep
Top Forums Shell Programming and Scripting Need Help on Grep Post 62335 by Aparna_k82 on Tuesday 15th of February 2005 06:24:43 AM
Old 02-15-2005
Hi,
Thankq so much
that was very fast..
command works
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else

Hi Guys, I need to set the value of $7 to zero in case $7 is NULL. I've tried the below command but doesn't work. Any ideas. thanks guys. MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else { print $7}}' ` Harby. (4 Replies)
Discussion started by: hariza
4 Replies

2. UNIX for Dummies Questions & Answers

| help | unix | grep - Can I use grep to return a string with exactly n matches?

Hello, I looking to use grep to return a string with exactly n matches. I'm building off this: ls -aLl /bin | grep '^.\{9\}x' | tr -s ' ' -rwxr-xr-x 1 root root 632816 Nov 25 2008 vi -rwxr-xr-x 1 root root 632816 Nov 25 2008 view -rwxr-xr-x 1 root root 16008 May 25 2008... (7 Replies)
Discussion started by: MykC
7 Replies

3. UNIX for Dummies Questions & Answers

| help | unix | grep (GNU grep) 2.5.1 | advanced regex syntax

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)
Discussion started by: MykC
4 Replies

4. Shell Programming and Scripting

grep for certain files using a file as input to grep and then move

Hi All, I need to grep few files which has words like the below in the file name , which i want to put it in a file and and grep for the files which contain these names and move it to a new directory , full file name -C20091210.1000-20091210.1100_SMGBSC3:1000... (2 Replies)
Discussion started by: anita07
2 Replies

5. UNIX for Dummies Questions & Answers

Difference between grep, egrep & grep -i

Hi All, Please i need to know the difference between grep, egrep & grep -i when used to serach through a file. My platform is SunOS 5.9 & i'm using the korn shell. Regards, - divroro12 - (2 Replies)
Discussion started by: divroro12
2 Replies

6. UNIX for Dummies Questions & Answers

Advanced grep'in... grep for data next to static element.

I have a directory I need to grep which consists of numbered sub directories. The sub directory names change daily. A file resides in this main directory that shows which sub directories are FULL backups or INCREMENTAL backups. My goal is to grep the directory for the word "full" and then... (2 Replies)
Discussion started by: SysAdm2
2 Replies

7. Shell Programming and Scripting

AWK/GREP: grep only lines starting with integer

I have an input file 12.4 1.72849432773174e+01 -7.74784188610632e+01 12.5 9.59432114416327e-01 -7.87018212757537e+01 15.6 5.20139995965960e-01 -5.61612429666624e+01 29.3 3.76696387248366e+00 -7.42896194101892e+01 32.1 1.86899877018077e+01 -7.56508762501408e+01 35 6.98857157014640e+00... (2 Replies)
Discussion started by: chrisjorg
2 Replies

8. UNIX for Dummies Questions & Answers

Bash - CLI - grep - Passing result to grep through pipe

Hello. I want to get all modules which are loaded and which name are exactly 2 characters long and not more than 2 characters and begin with "nv" lsmod | (e)grep '^nv???????????? I want to get all modules which are loaded and which name begin with "nv" and are 2 to 7 characters long ... (1 Reply)
Discussion started by: jcdole
1 Replies

9. UNIX for Dummies Questions & Answers

Piping grep into awk, read the next line using grep

Hi, I have a number of files containing the information below. """"" Fundallinfo 6.3950 14.9715 14.0482 """"" I would like to grep for Fundallinfo and use it to read the next line? I ideally would like to read the three numbers that follow in the next line and... (2 Replies)
Discussion started by: Paul Moghadam
2 Replies

10. Shell Programming and Scripting

Inconsistent `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`

i have this line of code that looks for the same file if it is currently running and returns the count. `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l` basically it is assigned to a variable ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
FLUSH(8)						      System Manager's Manual							  FLUSH(8)

NAME
flush - Postfix fast flush server SYNOPSIS
flush [generic Postfix daemon options] DESCRIPTION
The flush server maintains a record of deferred mail by destination. This information is used to improve the performance of the SMTP ETRN request, and of its command-line equivalent, sendmail -qR. This program expects to be run from the master(8) process manager. The record is implemented as a per-destination logfile with as contents the queue IDs of deferred mail. A logfile is append-only, and is truncated when delivery is requested for the corresponding destination. A destination is the part on the right-hand side of the right-most @ in an email address. Per-destination logfiles of deferred mail are maintained only for eligible destinations. The list of eligible destinations is specified with the fast_flush_domains configuration parameter, which defaults to $relay_domains. This server implements the following requests: FLUSH_REQ_ADD sitename queue_id Inform the fast flush server that the specified message is queued for sitename. Depending on logging policy, the fast flush server stores or ignores the information. FLUSH_REQ_SEND sitename Request delivery of mail that is queued for sitename. If the destination is eligible for a fast flush logfile, this request trig- gers delivery of messages listed in that destination's logfile, and the logfile is truncated to zero length; if mail is undeliver- able it will be added back to the logfile. If the destination is not eligible for a fast flush logfile, this request is rejected (see below for status codes). TRIGGER_REQ_WAKEUP This wakeup request from the master is an alternative way to request FLUSH_REQ_REFRESH. FLUSH_REQ_REFRESH (completes in the background) Refresh non-empty per-destination logfiles that were not read in fast_flush_refresh_time hours, by simulating send requests (see above) for the corresponding destinations. Delete empty per-destination logfiles that were not updated in fast_flush_purge_time days. FLUSH_REQ_PURGE (completes in the background) Refresh all non-empty per-destination logfiles, by simulating send requests (see above) for the corresponding destinations. This can be incredibly expensive when logging is enabled for many destinations, and is not recommended. Delete empty per-destination logfiles that were not updated in fast_flush_purge_time days. The server response is one of: FLUSH_STAT_OK The request completed normally. FLUSH_STAT_BAD The flush server rejected the request (bad request name, bad request parameter value). FLUSH_STAT_FAIL The request failed. FLUSH_STAT_DENY The request was denied because the destination domain is not eligible for fast flush service, or because the fast flush service is disabled. SECURITY
The fast flush server is not security-sensitive. It does not talk to the network, and it does not talk to local users. The fast flush server can run chrooted at fixed low privilege. DIAGNOSTICS
Problems and transactions are logged to syslogd(8). BUGS
Fast flush logfiles are truncated only after a FLUSH_REQ_SEND request, not when mail is actually delivered, and therefore can accumulate outdated or redundant data. In order to maintain sanity, FLUSH_REQ_REFRESH must be executed periodically. This can be automated with a suitable wakeup timer setting in the master.cf configuration file. Upon receipt of a request to deliver all mail for an eligible destination, the flush server requests delivery of all messages that are listed in that destination's logfile, regardless of the recipients of those messages. This is not an issue for mail that is sent to a relay_domains destination because such mail typically only has recipients in one domain. FILES
/var/spool/postfix/flush, location of "fast flush" logfiles. CONFIGURATION PARAMETERS
See the Postfix main.cf file for syntax details and for default values. Use the postfix reload command after a configuration change. fast_flush_domains What destinations can have a "fast flush" logfile. By default, this is set to $relay_domains. fast_flush_refresh_time Refresh a non-empty "fast flush" logfile that was not read in this amount of time (default time unit: hours), by simulating a send request for the corresponding destination. fast_flush_purge_time Remove an empty "fast flush" logfile that was not updated in this amount of time (default time unit: days). parent_domain_matches_subdomains List of Postfix features that use domain.tld patterns to match sub.domain.tld (as opposed to requiring .domain.tld patterns). SEE ALSO
smtpd(8) Postfix SMTP server qmgr(8) Postfix queue manager syslogd(8) system logging LICENSE
The Secure Mailer license must be distributed with this software. AUTHOR(S) Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA FLUSH(8)
All times are GMT -4. The time now is 10:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy