I'm wondering why this command does not work, at least, as I expect:
I expect that it list all files older than 7 days, with all information (ls -l). However it prints all files regardless of the date. Using -exec instead of '| xargs' has the same behavior.
On the other hand this command, that deletes all files older than 7 days works perfectly:
Why 'same' command works with rm and it doesn't with ls?
Is it possible to print all information (ls -l) of files older than X days?
Hello,
I create a file touch 1201093003 fichcomp
and inside a repertory (which hava a lot of files) I want to list all files created before this file :
find *.* \! -maxdepth 1 - newer fichcomp but this command returned bash: /usr/bin/find: Argument list too long
but i make a filter all... (1 Reply)
Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same.
Thanks in advance.
Regards
Jatin Jain (10 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)
Hello everyone,
first post here, trying to learn scripting on my own and this forum as been really helpful so far. I made few little scripts working great but I m facing some problems with RE.
I have a bunch of files in many subdirectories called *001.ext *002.ext OR simple *.ext or *01.ext... (7 Replies)
Hi all ,
I'm new to unix
I have a checked project , there exists a file called xxx.config .
now my task is to find all the files in the checked out project which references to this xxx.config file.
how do i use grep or find command . (2 Replies)
Hi Friends,
Please help me to sort out this problem, I am running this in centos o/s and whenever I run this script I am getting "find: missing argument to `-exec' " but when I run the same code in the command line I didn't find any problem. I am using perl script to run this ... (2 Replies)
I need assistance with following requirement, I am new to Unix.
I want to do the following task but stuck with file creation date(sysdate)
Following is the requirement
I need to create a script that will read the abc/xyz/klm folder and look for *.err files for that day’s date and then send an... (4 Replies)
Hello,
This is a bit complicated for me.
My scenario in MyFile:
Search string1,
When string1 is found, grep the line containing string1, go back over that line in upward direction and grep the first line containing string2.
Here is an example:
MyFile
His email address... (17 Replies)
Discussion started by: baris35
17 Replies
LEARN ABOUT DEBIAN
sendinpaths
SENDINPATHS(8) InterNetNews Documentation SENDINPATHS(8)NAME
sendinpaths - Send Usenet Path: statistics via e-mail
SYNOPSIS
sendinpaths [-cdhn] [-k keep-days] [-r report-days] [address [address ...]]
DESCRIPTION
sendinpaths checks pathlog/path for ninpaths dump files, finds dump files generated in the past report-days days, makes sure they are valid
by running ninpaths on each one and making sure the exit status is zero, and passes them to ninpaths to generate a cumulative report. By
default, that report is mailed to the e-mail addresses configured at the beginning of this script (by default, only one address is
configured: <top1000@anthologeek.net>) in order to supply the TOP1000 project with useful statistics. See
<http://top1000.anthologeek.net/> for more information.
When finished, sendinpaths deletes all dump files in pathlog/path that are older than keep-days days.
For more information on how to set up ninpaths, see ninpaths(8).
OPTIONS -c When this flag is used, the report is also e-mailed, besides the default submission addresses or those given as command-line arguments,
to the newsmaster's address set at configure time.
-d Enables debug messages.
-h Gives usage information.
-k keep-days
After having processed dump files, sendinpaths removes those that are older than keep-days days. The default is 0, that is to say to
remove all dump files.
Setting keep-days to another value can be useful for debugging purpose because it permits to keep a few dump files.
-n Don't e-mail the report; instead, just print it to standard output. Don't delete old dump files.
-r report-days
Process dump files generated during the last report-days days. The default is 32, that is to say to process all the dump files that
have been generated during the last 32 days (if, of course, they have not been deleted yet by a previous run of sendinpaths according
to the value set by the -k flag).
address ...
E-mail the report to the mentioned address or addresses, instead of the default one. Several addresses can be used, separated by
whitespace. For instance, for two adresses:
sendinpaths pathsurvey@top1000.org top1000@anthologeek.net
HISTORY
sendinpaths was written by Olaf Titz <olaf@bigred.inka.de>.
$Id: sendinpaths.pod 9384 2011-12-25 20:57:03Z iulius $
SEE ALSO ninpaths(8).
INN 2.5.3 2012-06-15 SENDINPATHS(8)