I am trying to use the find command to find files in the current directory that meet a certain date criteria.
find . -type -f -mtime +2
However, the above also checks the directories below.
I tried -prune, but that seems to ignore this directory completely.
I read about using -path w/... (5 Replies)
I want to include all the subnet files under /etc/dhcpd/ to /etc/dhcpd.conf
so here is my content of dhcpd.conf
...
include "/etc/dhcpd/*";
however, the check-syntax reports syntax error, as they do not recognize the wildcard *, and display that " file /etc/dhcpd/* could not be found.
... (4 Replies)
I need to find whether there is a file named vijay is there or not in folder named "opt" .I tried "ls *|grep vijay" but it showed permission problem.
so i need to use find command (6 Replies)
Hi All,
I'm trying to use the find command to return matches for a directory and file.
For example, given the following directories:
/one/two/three/file1.txt
/one/three/two/file1.txt
/one/four/two/three/file1.txt
I'm expecting the following to be returned:
... (16 Replies)
i have this find command on my script as:
for i in `find $vdir -name "$vfile" -mtime +$pday`
the problem with this code is that the sub-directories are included on the search. how do i restrict the search to confine only on the current directory and ignore the sub-directories. please advise.... (7 Replies)
how can i make find/sed to include directory names with spaces
the command is like this
for i in `find wp-content/themes -type f -print0 | xargs -0 grep -l
-iE 'e'`;do sed -i -e 's/word1/word2/gI' "$i";done
but it skips one directory names with spaces
sed: can't read ./Nova: No such... (5 Replies)
Dear All,
I am using find command
find /my_rep/*/RKYPROOF/*/*/WDM/HOME_INT/PWD_DATA -name rk*myguidelines*.pdf -print
The problem i am facing here is find /my_rep/*/
the directory after my_rep could be mice001, mice002 and mice001_PO, mice002_PO
i want to ignore mice***_PO directory... (3 Replies)
Hi
I've to remove the files which has the following file pattern in path /home/etc/logs
fnm_HST_date1
fnm_hst_date1
fnm_HST_date2
I've used the following code to to remove the files having file names like "HST" .
#!/usr/bin/ksh
set -x
file_path=/home/etc/logs
file_nm=HST
find... (2 Replies)
so i have a script that i do not want copies of that script to be roaming around. i want that script to be in only one location on the filesystem, and whoever wants to use it should just link to it.
any idea on how to exit from a script if it is detected that the running version is a copy and... (5 Replies)
How can i tweak the below find command to exclude directory/s -> "/tmp/logs"
find . -type f \( ! -name "*.log*" ! -name "*.jar*" \) -printNote: -path option/argument does not work with the version of find that i have.
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v (7 Replies)
Discussion started by: mohtashims
7 Replies
LEARN ABOUT REDHAT
postfix
POSTFIX(1) General Commands Manual POSTFIX(1)NAME
postfix - Postfix control program
SYNOPSIS
postfix [-c config_dir] [-D] [-v] command
DESCRIPTION
This command is reserved for the super-user. To submit mail, use the Postfix sendmail command.
The postfix command controls the operation of the Postfix mail system: start or stop the master daemon, do a health check, and other main-
tenance.
The postfix command sets up a standardized environment and runs the postfix-script shell script to do the actual work.
The following commands are implemented:
check Validate the Postfix mail system configuration. Warn about bad directory/file ownership or permissions, and create missing directo-
ries.
start Start the Postfix mail system. This also runs the configuration check described above.
stop Stop the Postfix mail system in an orderly fashion. Running processes are allowed to terminate at their earliest convenience.
Note: in order to refresh the Postfix mail system after a configuration change, do not use the start and stop commands in succes-
sion. Use the reload command instead.
abort Stop the Postfix mail system abruptly. Running processes are signaled to stop immediately.
flush Force delivery: attempt to deliver every message in the deferred mail queue. Normally, attempts to deliver delayed mail happen at
regular intervals, the interval doubling after each failed attempt.
reload Re-read configuration files. Running processes terminate at their earliest convenience.
The following options are implemented:
-c config_dir
Read the main.cf and master.cf configuration files in the named directory instead of the default configuration directory. Use this
to distinguish between multiple Postfix instances on the same host.
-D (with postfix start only)
Run each Postfix daemon under control of a debugger as specified via the debugger_command configuration parameter.
-v Enable verbose logging for debugging purposes. Multiple -v options make the software increasingly verbose.
ENVIRONMENT
The postfix command sets the following environment variables:
MAIL_CONFIG
Directory with Postfix configuration files.
MAIL_VERBOSE
This is set when the -v command-line option is present.
MAIL_DEBUG
This is set when the -D command-line option is present.
CONFIGURATION PARAMETERS
The following main.cf configuration parameters are made available as process environment variables with the same names:
command_directory
Directory with Postfix administrative commands.
daemon_directory
Directory with Postfix daemon programs.
config_directory
Directory with Postfix configuration files and with administrative shell scripts.
queue_directory
The directory with Postfix queue files, with local inter-process communication endpoints, and with files needed for daemon programs
that run in the optional chrooted environment.
mail_owner
The owner of Postfix queue files and of most Postfix processes.
setgid_group
The group for mail submission and queue management commands.
sendmail_path
The full pathname for the Postfix sendmail command.
newaliases_path
The full pathname for the Postfix newaliases command.
mailq_path
The full pathname for the Postfix mailq command.
manpage_directory
The directory for the Postfix on-line manual pages.
sample_directory
The directory for the Postfix sample configuration files.
readme_directory
The directory for the Postfix README files.
Other configuration parameters
import_environment
List of names of environment parameters that can be imported from non-Postfix processes.
FILES
$config_directory/postfix-script, administrative commands
$config_directory/main.cf, configuration parameters
$config_directory/master.cf, Postfix daemon processes
SEE ALSO master(8) Postfix master program
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
POSTFIX(1)