10-17-2005
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys
I'm trying to move an empty directory to the $TRASH directory. Say the directory i have is ./hello/hello1/hello2 and i'm in hello2, and i want hello2 moved.
this code:
TRASH=$home/deleted
find "$TRASH/$1" -type d -exec rmdir { } \; 2>/dev/null
mv -f $1 $TRASH 2>/dev/null
works... (2 Replies)
Discussion started by: olimiles
2 Replies
2. UNIX for Dummies Questions & Answers
Hi every1,
There is a folder with .lst files which has email id's of our project group.
I want to find files which has my email id starting with sachin but i dont want find command to search subdirectories. I have read about prune but i didnt understand that. I am pretty new in this field.... (7 Replies)
Discussion started by: sachin.gangadha
7 Replies
3. Shell Programming and Scripting
Hi,
Am trying for a script which should delete more than 15 days older files in my current directory.Am using the below piece of code:
"find /tmp -type f -name "pattern" -mtime +15 -exec /usr/bin/ls -altr {} \;"
"find /tmp -type f -name "pattern" -mtime +15 -exec /usr/bin/rm -f {} \;"
... (9 Replies)
Discussion started by: puppala
9 Replies
4. Shell Programming and Scripting
I am using the following command in a C shell script:
find . -name "*.*" -print | zip $ProjectZipFile -@
to zip files in a Unix (Sun and/or Linux) directory for archiving purposes. This command works fine, the only problem being that if sub-directories are present, they are included in... (5 Replies)
Discussion started by: phudgens
5 Replies
5. Shell Programming and Scripting
If I enter (simplified):
find . -printf "%p\n"
then all files in the output are prepended by a "." like
./local/share/test23.log
How can achieve that
a.) the leading "./" is omitted
and/or
b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Discussion started by: pstein
1 Replies
6. UNIX for Dummies Questions & Answers
In ubuntu, I want to update the title of the terminal window with the current directory path. Any ideas how this can be achieved?
---------- Post updated at 02:22 PM ---------- Previous update was at 02:08 PM ----------
Done it
---------- Post updated at 02:30 PM ---------- Previous update... (2 Replies)
Discussion started by: kristinu
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I am trying to delete file (with a mtime older than 2 days) from the current directory ONLY using:
find . -daystart -maxdepth 1 -mtime 2 -exec rm {} \;
but this doesn't seem to work it is still find files in subdirectories which I don't want to delete.
Please can anyone offer... (2 Replies)
Discussion started by: daveu7
2 Replies
8. Shell Programming and Scripting
hello, all
I have googled internet, read the man page of Find, searched this forum, but still could not figure out how.
My current directory is:
little@wenwen:~$ pwd
/home/little
little@wenwen:~$
I want to use find command to list the files in my current directory, how should i write... (3 Replies)
Discussion started by: littlewenwen
3 Replies
9. UNIX for Dummies Questions & Answers
How to get the current directory Path in your prompt?
i am getting a $ mark only in my prompt?
Please help me with this (3 Replies)
Discussion started by: Abhishek0683
3 Replies
10. Shell Programming and Scripting
Hello.
I want to find a line that has "new = 0" in it, then search back based on field $4 () in the current line, and find the first line that has field $4 and "last fetch"
Grep or Awk preferred.
Here is what the data looks like:
2013-12-12 12:10:30,117 TRACE last fetch: Thu Dec 12... (7 Replies)
Discussion started by: JimBurns
7 Replies
LEARN ABOUT DEBIAN
dwww-find
DWWW-FIND(8) Debian DWWW-FIND(8)
NAME
dwww-find - find documentation related to a search argument
SYNOPSIS
dwww-find [--program|--menu|--documentation|--docfile|--doc-base-list] [--skip=number] argument [...]
DESCRIPTION
dwww-find is part of the dwww package, which provides access to on-line documentation on a Debian system via WWW.
dwww-find searches for a documentation related to a given program, for entries from Debian Documentation Menu, or at least for documents
registered with doc-base. It returns a HTML-formatted document with search results.
OPTIONS
--program
Search for documentation (man pages, info files, etc.) related to program specified by argument.
--menu Search for entries in Debian Documentation Menu pages generated by dwww-build-menu(8).
--documentation
Search in documentation files registered with doc-base. It uses search++(1) for searching.
--docfile
Search for documentation for package, which contains the file specified by the argument. The file must be located in or below a
directory that has been allowed by the system administrator; see dwww(7) for more info.
--doc-base-list
Show list of registerered doc-base files for given argument, which should be specified as format/document-id, where document-id is
an identificator of registered doc-base document, and format is a name of format (e.g. text or pdf) registered by the document, for
which the list list is to be generated.
--skip=number
Works only with --documentation. Skip number of search results.
When no options are specified, --program is assumed.
FILES
/etc/dwww/dwww.conf
Configuration file for dwww.
SEE ALSO
dwww(7), dwww-quickfind(8), dwww-build-menu(8), dwww-index++(8), search++(1), Debian doc-base Manual in
/usr/share/doc/doc-base/doc-base.html/index.html.
AUTHORS
Lars Wirzenius. Robert Luberda.
See dwww(7) for copyrights and stuff.
dwww 1.11.4 January 15th, 2011 DWWW-FIND(8)