Ive been a vocal of FIND command even before. Command below doesnt really give me the file that is older than two weeks.. Is there a script that will list me the log files that i want like for this date December 10, 2014, it shud list me the date between November 26, 2014 and below.
When i run that command, it gives me Novemebr 11, we all know nvember 11 is more than two weeks ago.
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)
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)
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)
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)
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)
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)
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)
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)
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 OSX
gitk
GITK(1) Git Manual GITK(1)NAME
gitk - The git repository browser
SYNOPSIS
gitk [<option>...] [<revs>] [--] [<path>...]
DESCRIPTION
Displays changes in a repository or a selected set of commits. This includes visualizing the commit graph, showing information related to
each commit, and the files in the trees of each revision.
Historically, gitk was the first repository browser. It's written in tcl/tk and started off in a separate repository but was later merged
into the main git repository.
OPTIONS
To control which revisions to show, the command takes options applicable to the git rev-list command (see git-rev-list(1)). This manual
page describes only the most frequently used options.
-n <number>, --max-count=<number>
Limits the number of commits to show.
--since=<date>
Show commits more recent than a specific date.
--until=<date>
Show commits older than a specific date.
--all
Show all branches.
--merge
After an attempt to merge stops with conflicts, show the commits on the history between two branches (i.e. the HEAD and the MERGE_HEAD)
that modify the conflicted files and do not exist on all the heads being merged.
--argscmd=<command>
Command to be run each time gitk has to determine the list of <revs> to show. The command is expected to print on its standard output a
list of additional revs to be shown, one per line. Use this instead of explicitly specifying <revs> if the set of commits to show may
vary between refreshes.
--select-commit=<ref>
Automatically select the specified commit after loading the graph. Default behavior is equivalent to specifying --select-commit=HEAD.
<revs>
Limit the revisions to show. This can be either a single revision meaning show from the given revision and back, or it can be a range
in the form "<from>..<to>" to show all revisions between <from> and back to <to>. Note, more advanced revision selection can be
applied. For a more complete list of ways to spell object names, see gitrevisions(7).
<path>...
Limit commits to the ones touching files in the given paths. Note, to avoid ambiguity with respect to revision names use "--" to
separate the paths from any preceding options.
EXAMPLES
gitk v2.6.12.. include/scsi drivers/scsi
Show the changes since version v2.6.12 that changed any file in the include/scsi or drivers/scsi subdirectories
gitk --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
gitk --max-count=100 --all -- Makefile
Show at most 100 changes made to the file Makefile. Instead of only looking for changes in the current branch look in all branches.
FILES
Gitk creates the .gitk file in your $HOME directory to store preferences such as display options, font, and colors.
SEE ALSO qgit(1)
A repository browser written in C++ using Qt.
gitview(1)
A repository browser written in Python using Gtk. It's based on bzrk(1) and distributed in the contrib area of the git repository.
tig(1)
A minimal repository browser and git tool output highlighter written in C using Ncurses.
GIT
Part of the git(1) suite
Git 1.7.10.4 11/24/2012 GITK(1)