I have a directory named https-abcd
Under that I have some directories, files and links.
One of those directories is with name logs and the logs directory has lot of files in it.
I need to tar the whole https-abcd directory excluding the logs directory only, I should get all the links, files and... (2 Replies)
Hi,
I am using a find command like below in my script:
find /outfiles -type f -name cat -o -name vi -o -name grep 2>/dev/null
Which will search for files like "cat" , "vi" or "grep" in the "/outfiles" and subdirectories.
I want to ignore a particular subdirectory from the search. I... (4 Replies)
Hi,
I want to list files only from the current dir and its child dir (not from child's child dir).
i have the following files,
./ABC/1.log
./ABC/2.log
./ABC/ABC1/A.log
./ABC/ABC1/B.log
./ABC/ABC1/XYZ/A1.log
./ABC/ABC1/XYZ/A2.log
Here i want to list only the log file from current... (1 Reply)
OK, I'm trying search and destroy tabs again.
This time I'm having trouble excluding certain directories from my search.
Here is what I have tried and it is not ignoring the top level build directory:
find . -path ./build -prune -name \*.java -o -print | xargs grep -i ' '
I don't... (6 Replies)
Hi
I've made some test with perl script to learn more about mtime...
So, my question is :
Why the mtime from findfind /usr/local/sbin -ctime -1 -mtime -1 \( -name "*.log" -o -name "*.gz" \) -print are not the same as mtime from unix/linux in ls -ltr or in stat() function in perl : stat -... (2 Replies)
How do I run a find without is looking in ./Trash
gregg@gregg-desktop:/media/Audio$ find . -type f ! -name '*.jpg' -size 1M -print |head
find: `./.Trash-1000/expunged/2781324553/mp3-to-m4b-batch': Input/output error
find:... (0 Replies)
Hi
I am trying to list all files in every subdirectory from a given location. However, I realise that 1 folder will have files that I am not interested in. This is using a .csh file to execute
I have tried different scripts but to no avail. My current incarnation is below. Would someone be... (4 Replies)
I am trying to find all .rhosts files on some unix systems. I tried just -name ".rhosts" but we have a lot of really large NFS and MVFS systems that I do not want to crawl and I am having a hard time excluding them. I also need to scan more than just /root /home and /users, so I really need to scan... (1 Reply)
I am into
cd /home/work/amey/history-*/
Under amey I have directories
history, history-1, history-2 and under history-2 I have got 2 files 3 and 2.
When I run the find command I get the below o/p.
find /home/work/amey/history-*/. -name . -o -prune -type f
/home/work/amey/history-1/.... (1 Reply)
Hi,
I have two files under two separate directories as in:
find . -name test.sh
./test.sh
./abc/test.sh
I want my find to only look for the file test.sh that is under the current directory and not one under /abc
How do I use prune to achieve this? I am on AIX (3 Replies)
Discussion started by: swasid
3 Replies
LEARN ABOUT SUSE
git-notes
GIT-NOTES(1) Git Manual GIT-NOTES(1)NAME
git-notes - Add/inspect object notes
SYNOPSIS
git notes [list [<object>]]
git notes add [-f] [-F <file> | -m <msg> | (-c | -C) <object>] [<object>]
git notes copy [-f] ( --stdin | <from-object> <to-object> )
git notes append [-F <file> | -m <msg> | (-c | -C) <object>] [<object>]
git notes edit [<object>]
git notes show [<object>]
git notes remove [<object>]
git notes prune
DESCRIPTION
This command allows you to add/remove notes to/from objects, without changing the objects themselves.
A typical use of notes is to extend a commit message without having to change the commit itself. Such commit notes can be shown by git log
along with the original commit message. To discern these notes from the message stored in the commit object, the notes are indented like
the message, after an unindented line saying "Notes (<refname>):" (or "Notes:" for the default setting).
This command always manipulates the notes specified in "core.notesRef" (see git-config(1)), which can be overridden by GIT_NOTES_REF. To
change which notes are shown by git-log, see the "notes.displayRef" configuration.
See the description of "notes.rewrite.<command>" in git-config(1) for a way of carrying your notes across commands that rewrite commits.
SUBCOMMANDS
list
List the notes object for a given object. If no object is given, show a list of all note objects and the objects they annotate (in the
format "<note object> <annotated object>"). This is the default subcommand if no subcommand is given.
add
Add notes for a given object (defaults to HEAD). Abort if the object already has notes (use -f to overwrite an existing note).
copy
Copy the notes for the first object onto the second object. Abort if the second object already has notes, or if the first object has
none (use -f to overwrite existing notes to the second object). This subcommand is equivalent to: git notes add [-f] -C $(git notes
list <from-object>) <to-object>
In --stdin mode, take lines in the format
.ft C
<from-object> SP <to-object> [ SP <rest> ] LF
.ft
on standard input, and copy the notes from each <from-object> to its corresponding <to-object>. (The optional <rest> is ignored so that
the command can read the input given to the post-rewrite hook.)
append
Append to the notes of an existing object (defaults to HEAD). Creates a new notes object if needed.
edit
Edit the notes for a given object (defaults to HEAD).
show
Show the notes for a given object (defaults to HEAD).
remove
Remove the notes for a given object (defaults to HEAD). This is equivalent to specifying an empty note message to the edit subcommand.
prune
Remove all notes for non-existing/unreachable objects.
OPTIONS -f, --force
When adding notes to an object that already has notes, overwrite the existing notes (instead of aborting).
-m <msg>, --message=<msg>
Use the given note message (instead of prompting). If multiple -m options are given, their values are concatenated as separate
paragraphs.
-F <file>, --file=<file>
Take the note message from the given file. Use - to read the note message from the standard input.
-C <object>, --reuse-message=<object>
Reuse the note message from the given note object.
-c <object>, --reedit-message=<object>
Like -C, but with -c the editor is invoked, so that the user can further edit the note message.
--ref <ref>
Manipulate the notes tree in <ref>. This overrides both GIT_NOTES_REF and the "core.notesRef" configuration. The ref is taken to be in
refs/notes/ if it is not qualified.
NOTES
Every notes change creates a new commit at the specified notes ref. You can therefore inspect the history of the notes by invoking, e.g.,
git log -p notes/commits.
Currently the commit message only records which operation triggered the update, and the commit authorship is determined according to the
usual rules (see git-commit(1)). These details may change in the future.
AUTHOR
Written by Johannes Schindelin <johannes.schindelin@gmx.de[1]> and Johan Herland <johan@herland.net[2]>
DOCUMENTATION
Documentation by Johannes Schindelin and Johan Herland
GIT
Part of the git(7) suite
NOTES
1. johannes.schindelin@gmx.de
mailto:johannes.schindelin@gmx.de
2. johan@herland.net
mailto:johan@herland.net
Git 1.7.1 07/05/2010 GIT-NOTES(1)