11-25-2011
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
my solaris text talks about the 'find' command... it further goes to talk about an "action" used with the find command.
I am completely confused as to what the {} do with the find comand.
the explanation is this: "A set of braces, {}, delimits where the file name is passed to the command from... (2 Replies)
Discussion started by: xyyz
2 Replies
2. Shell Programming and Scripting
Hi All,
I am trying to use the find command to search and delete files and have the following scenario. How come the file in the current directory is not getting listed out?
/glo71sw/716/devl/userdata/ftpord --> ls -lt XSKU*
-rw-r--r-- 1 root sys 137493 Jul 7 18:30... (6 Replies)
Discussion started by: negixx
6 Replies
3. UNIX for Dummies Questions & Answers
I am not sure if this question has been answered earlier at the Unix Forums. I tried a search but could not find anything.
So here it goes...
I am looking for a log file under /home.
find /home dklog.log -print
This prints all the directories it traverses while looking for the file and in... (4 Replies)
Discussion started by: hnhegde
4 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I have wrote a command to find a and remove all *.apr files ina directory .
Now i got the request as reversed , They want to remove all files except *.apr in the direcory .
Is it possible to do that in a find comand else i have give an explicit find command to all *. files to... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
5. UNIX for Dummies Questions & Answers
I'm using this in AIX to find what file contains the value 'batch' in it, in all directories.
find / -type f -exec grep -l batch {} /dev/null \;
My question is, what if I only wanted to search *.sh files, and I wanted to pipe the results to a file called 'batch_find.txt'. How could I code... (3 Replies)
Discussion started by: NycUnxer
3 Replies
6. UNIX for Dummies Questions & Answers
Hello!
I have written this script:
for file in "$( find $dirName -type d )"
do
echo "$file"
echo "hello"
done
but as a result I get all the directories and in the end the work "hello". Shouldn't it print the word "hello" after printing the name of each directory and not in the end?
... (1 Reply)
Discussion started by: GeorgeP
1 Replies
7. Shell Programming and Scripting
Hi
I need to find the command ("find" , "grep" etc..) which would give me the full path and file name of all the files in the entire directory tree which contain the line "/bbsrc/doc/". What would be the most efficient way to do it? Thanks a lot for advice -A (6 Replies)
Discussion started by: aoussenko
6 Replies
8. Shell Programming and Scripting
Hi,
I want to search in the log directory only. This log directory exists at mutiple places in my directory tree. I know that to exclude any directory we have option - prune but can we do the just opposite of it.. just check a single directory and exclude the rest.
thanks (3 Replies)
Discussion started by: manojgarg
3 Replies
9. UNIX for Dummies Questions & Answers
I was using this find command to search for this string
find /usr/reports -name '*.txt' -type f -exec grep -l tbl_out:add_19 {} \; > /usr/work/junk.txt
My question is, if I want to search another type of file extension besides '*.txt'
how can I include it on the same line to say something... (5 Replies)
Discussion started by: NycUnxer
5 Replies
10. Shell Programming and Scripting
Hi all,
I want to use find to 'find' files older than a file.
The command I have come up with so far is
find . -type f ! -newer filename -print | grep -v filename
If I dont use the -v then the filename is included in the output
is there a better way of formulating this command... (1 Reply)
Discussion started by: jonnyd
1 Replies
LEARN ABOUT CENTOS
doveadm-log
DOVEADM-LOG(1) Dovecot DOVEADM-LOG(1)
NAME
doveadm-log - Locate, test or reopen Dovecot's log files
SYNOPSIS
doveadm [-Dv] log errors [-s min_timestamp]
doveadm [-Dv] log find [directory]
doveadm [-Dv] log reopen
doveadm [-Dv] log test
DESCRIPTION
The doveadm log commands are used to locate and reopen the log files of dovecot(1). It's also possible to test the configured targets of
the *log_path settings.
OPTIONS
Global doveadm(1) options:
-D Enables verbosity and debug messages.
-v Enables verbosity, including progress counter.
COMMANDS
log errors
doveadm log errors [-s min_timestamp]
The log errors command is used to show the last - up to 1,000 - errors and warnings. If no output is generated, no errors have occurred
since the last start.
-s min_timestamp
An integer value, representing seconds since the epoch - also known as Unix timestamp. When a min_timestamp was given, doveadm(1)
will only show errors occurred since that point in time.
log find
doveadm log find [directory]
The log find command is used to show the location of the log files, to which dovecot(1) sends its log messages. If dovecot(1) logs its
messages through syslogd(8) and doveadm(1) could not find any log files, you can specify the directory where your syslogd writes its log
files.
log reopen
doveadm log reopen
This command causes doveadm to reopen all log files, configured in the log_path, info_log_path and debug_log_path settings. These settings
are configured in /etc/dovecot/conf.d/10-logging.conf.
This is for example useful after manually rotating the log files.
log test
doveadm log test
This command causes doveadm to write the message "This is Dovecot's priority log (timestamp)" to the configured log files. The used prior-
ities are: debug, info, warning, error and fatal.
EXAMPLE
This example shows how to locate the log files used by dovecot(1).
doveadm log find
Looking for log files from /var/log
Debug: /var/log/dovecot.debug
Info: /var/log/mail.log
Warning: /var/log/mail.log
Error: /var/log/mail.log
Fatal: /var/log/mail.log
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
SEE ALSO
doveadm(1)
Dovecot v2.2 2013-11-24 DOVEADM-LOG(1)