I am trying to use the find command to find files in the current directory that meet a certain date criteria.
find . -type -f -mtime +2
However, the above also checks the directories below.
I tried -prune, but that seems to ignore this directory completely.
I read about using -path w/... (5 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)
Hi All,
I'm trying to use the find command to return matches for a directory and file.
For example, given the following directories:
/one/two/three/file1.txt
/one/three/two/file1.txt
/one/four/two/three/file1.txt
I'm expecting the following to be returned:
... (16 Replies)
Hello,
I know find can be prevented from recursing into directories with something like the following...
find . -name .svn -prune -a type d
But how can I completely prevent directories of a certain name (.svn) from being displayed at all, the top level and the children?
I really... (2 Replies)
i am trying to recursively save a remote FTP server but exclude the files immediately under a directory directory1
wget -r -N ftp://user:pass@hostname/directory1
I want to keep these which may have more files under them
directory1/dir1/file.jpg
directory1/dir2/file.jpg... (16 Replies)
This script writes the output files to FILES but I don't want to exclude all directories from ABC_CHQ and LYS_ADV, I want to include one sub directory name process which is under ABC_CHQ and LYS_ADV in the search. Right now its excluding everything from prune directories such as ABC_CHQ, LYS_ADV... (10 Replies)
so i have a script that i do not want copies of that script to be roaming around. i want that script to be in only one location on the filesystem, and whoever wants to use it should just link to it.
any idea on how to exit from a script if it is detected that the running version is a copy and... (5 Replies)
How can i tweak the below find command to exclude directory/s -> "/tmp/logs"
find . -type f \( ! -name "*.log*" ! -name "*.jar*" \) -printNote: -path option/argument does not work with the version of find that i have.
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v (7 Replies)
Hi,
I am using following command to find a specific file.
find . -name "find*.txt" -type f -print
I am issuing that command at root directory since I don't know in which sub folder that file is getting created from some other process.
As I am not having access to all directories, my... (3 Replies)
I am using aix. I would like to ignore the /u directory. I tried this but it is not working.
find / -type f -type d \( -path /u \) -prune -o -name '*rpm*' 2>/dev/null
/u/appx/ls.rpm
/u/arch/vim.rpm (4 Replies)
Discussion started by: cokedude
4 Replies
LEARN ABOUT DEBIAN
d-shlibmove
d-shlibmove(1) d-shlibs manual d-shlibmove(1)NAME
d-shlibmove - Move shared library files around in Debian package creation process
SYNOPSIS
d-shlibmove [options] shared-library.so
DESCRIPTION
Call this program in debian/rules as a replacement of dh_movefiles for shared library packages.
It also checks debian/control for validity.
OPTIONS --movedev [filename] [relative dir-path]
Install file into relative directory path within the -dev package. The dir will be created with install -d and the file will be
moved.
--moveshl [filename] [relative dir-path]
Install file into relative directory path within the shared library runtime package. The dir will be created with install -d and
the file will be moved.
--movedevdoc [filename]
Install file into the documentation directory of -dev package. The dir will be created with install -d and the file will be moved.
Added in version 0.4
--extralib [shared-library.so]
Install the shared library in the same package as the main shared library.
--multiarch
By default d-shlibmove installs the shared library and any extralibs into /usr/lib. Add this flag to install them into
/usr/lib/<architecture-tripplet> instead.
Added in version 0.48
--commit
By default d-shlibmove runs in a dry-run mode. Add this flag to make the moving actually happen.
--suffix [suffix to add to shared library package]
Add a suffix to shared library package. This is a workaround when binary interface to package changed, and some fixup to Debian
packaging needs to be done.
Added in version 0.3
--devsuffix [suffix to add to development package]
Add a suffix to development package. For making incompatible development package.
--shlibs-local [current-version]
Create a debian/shlibs.local file to use, and specify current-version of shared library package. You need to remove
debian/shlibs.local, because this only appends to, not overwrite.
Added in version 0.3
--devunversioned
Install into unversioned development package.
Added in version 0.42
--ignorelibdep
Suppress shlib dependency. Useful when dynamically resolved e.g. using CDBS.
Added in version 0.42
--c102
Add c102 suffix to package names, for C++ ABI transition.
Added in version 0.8
--ldbl
Add dbl suffix to package names.
Added in version 0.35
--include-a
Install the *.a files. This is the default behavior.
Added in version 0.51
--exclude-a
Avoid installing *.a files.
Added in version 0.51
--include-la
Install the *.la files. This is the default behavior.
Added in version 0.45
--exclude-la
Avoid installing *.la files.
Added in version 0.45
--override [override statement]
Add an overriding sed expression, which looks like --override s/libshared1-dev/libshared-dev/. This expression is executed after
the other rules.
Multiple --override can be specified.
Added in version 0.30
EXIT CODE
Return 1 on error.
Return 2 on dry-run.
Return 0 on success.
EXAMPLES
The following is a sample command-line of a hypothetical package installation.
d-shlibmove --commit--movedev "debian/tmp/usr/include/*" usr/include --extralib debian/tmp/usr/lib/libhomeman-pthread.so
debian/tmp/usr/lib/libhomeman.so
AUTHOR
Junichi Uekawa <dancer@debian.org> <dancer@netfort.gr.jp>
SEE ALSO
d-devlibdeps (1)
Debian GNU/Linux 2002 May 3 d-shlibmove(1)