12-11-2014
Quote:
Originally Posted by
RudiC
I disagreed with the quoted sentence from post#1, which means I'm d'accord with your (Ditto's) statement. -mtime points to a given point in time n *24 hours ago, +n opens that to a range larger than n, meaning everything older than that point in time.
Ah, must have misread you then .. no worries
10 More Discussions You Might Find Interesting
1. Solaris
I need to list all files and subdirectories that contain "oradata".
For example, I have several files in several different directories that contain "oradata". I.e.
/u07/oradata/1.dbf
/u09/unix/whatever/oradata/2.xxx
That is, whatever file on the system that contains a directory called... (7 Replies)
Discussion started by: Sat510
7 Replies
2. Shell Programming and Scripting
Say folder archive/ contains many folder each created on a day. this folder may contain files. i want to write a script to delete all the folder inside archive/ which are 7 days older. i used the below script for the reason.
find archive -mtime +7 -type d -exec rm -r {} \;
pls suggest me if... (3 Replies)
Discussion started by: krishnarao
3 Replies
3. Shell Programming and Scripting
HI,
I need to check whether the given file is 5 weeks older than current date ??
Can anyone give me the script for this ?? (1 Reply)
Discussion started by: risshanth
1 Replies
4. AIX
Hi,
I am trying to find the content of file using grep and find command and list only the file names
but i am getting entire file list of files in the directory
find . -exec grep "test" {} \; -ls
Can anyone of you correct this (2 Replies)
Discussion started by: madhu_Jagarapu
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I'm the new user of linux/unix. Can I ask that anybody know how to use the linux/unix shortcut key to search a specific file from a list of directory?
For example, I know the file name that I want to search. But I forget which directory or location is my desired file put.Got any shortcut... (7 Replies)
Discussion started by: patrick87
7 Replies
6. Shell Programming and Scripting
Hi, Friends,
I am writing a script to delete all the files which are there for more than 3 weeks.
I have tried this :
find /home/appl/backup -type f -mtime +21 -exec rm -f {} \;
But i am not sure if it deletes only the files in specified directory or all the directorinies in the provieded... (3 Replies)
Discussion started by: rajsharma
3 Replies
7. Shell Programming and Scripting
I Need help for one requirement,
I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix.
Example:
Source Directory : \a
destination Directory : \a\b
File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt)
File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Discussion started by: pp_ayyanar
1 Replies
8. Shell Programming and Scripting
There is another post in the forums that is similar to what I am trying to do, however, the thread is closed. So, I am creating this new one to see if someone could help. I am trying to use the code Ahamed posted, and tweak it.
With the info from the forum, I recreated the scenario the person... (8 Replies)
Discussion started by: karstenjhilton
8 Replies
9. Shell Programming and Scripting
I have written a script which generate one logfile on every sunday and thursday
I want to move the older log files into /tmp directory befor generating new one so i used mv command like
mv usr/sbin/appl/logfile.txt usr/sbin/appl/tmp
2) But when i move this file to /tmp it will... (1 Reply)
Discussion started by: Nakul_sh
1 Replies
10. Shell Programming and Scripting
The below bash is trying to list the folders in a specific directory. It seems close but adds the path to the filename, which basename could strip off I think, but not sure why it writes the text file created? This list of folders in the directory will be used later, but needs to only be the... (5 Replies)
Discussion started by: cmccabe
5 Replies
LEARN ABOUT MOJAVE
git-whatchanged
GIT-WHATCHANGED(1) Git Manual GIT-WHATCHANGED(1)
NAME
git-whatchanged - Show logs with difference each commit introduces
SYNOPSIS
git whatchanged <option>...
DESCRIPTION
Shows commit logs and diff output each commit introduces.
New users are encouraged to use git-log(1) instead. The whatchanged command is essentially the same as git-log(1) but defaults to show the
raw format diff output and to skip merges.
The command is kept primarily for historical reasons; fingers of many people who learned Git long before git log was invented by reading
Linux kernel mailing list are trained to type it.
EXAMPLES
git whatchanged -p v2.6.12.. include/scsi drivers/scsi
Show as patches the commits since version v2.6.12 that changed any file in the include/scsi or drivers/scsi subdirectories
git whatchanged --since="2 weeks ago" -- gitk
Show the changes during the last two weeks to the file gitk. The "--" is necessary to avoid confusion with the branch named gitk
GIT
Part of the git(1) suite
Git 2.17.1 10/05/2018 GIT-WHATCHANGED(1)