06-23-2002
Quick check to see if they're inyour path...is "which find"
This will tell you where it is - if it's in your path. If it can't find it (which I suspect) then it's not in your path and needs to be added.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
:confused:
ls -dlRr
I've tried different combinations of the ls command using the above-mentioned options but none of them are giving me the output I am looking for.
Objective: To get a recursive listing of all subdirectories from a particular starting point. For example, if my starting... (5 Replies)
Discussion started by: HLee1981
5 Replies
2. Shell Programming and Scripting
Hi,
find . | xargs -s 47518 can list all the files and directories recursively , is there any possibility to copy only files from directories and subdirectoreis once it is listed. Please help
Thans & Regards
Uma (3 Replies)
Discussion started by: umapearl
3 Replies
3. Shell Programming and Scripting
hi
I have files named
123_234_aaa.jpg
234_231_345.jpg
and i wish to rename these files to
aaa.jpg and 345.jpg. i.e inital number,_,next number should be removed form the file name. Please let me know how can i do it. (2 Replies)
Discussion started by: vasuarjula
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have d1,d2,d3 directories
/
/home/abc/d1
/home/abc/d2
/home/abc/d3
d1,d2 and d3 also have subdirctories.
d1-->d11-->d12
d2-->d22-->d23
d3-->d33-->d34
All these directories have files like date_filename.txt
so I want to find the files recusively for a particular date from... (1 Reply)
Discussion started by: jagadish_gaddam
1 Replies
5. UNIX for Dummies Questions & Answers
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Discussion started by: nmakkena
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Please help me, how to get all the direcotries, its sub directories and its sub directories recursively, need to exclude all the files in the process.
I wanted to disply using a unix command all the directories recursively excluding files.
I tried 'ls -FR' but that display files as... (3 Replies)
Discussion started by: pointers
3 Replies
7. Shell Programming and Scripting
I would like to transfer all files ending with .log from /tmp and to /tmp/archive (using find )
The directory structure looks like :-
/tmp
a.log
b.log
c.log
/abcd
d.log
e.log
When I tried the following command , it movies all the log files... (8 Replies)
Discussion started by: frintocf
8 Replies
8. Shell Programming and Scripting
Hi,
New to shell scripting.
I am trying to count number of files in a directory that contains lot of sub-directories. Any input on this greatly appreciated.
thank you! (15 Replies)
Discussion started by: lramsb4u
15 Replies
9. Shell Programming and Scripting
Hi all,
how to recursively search for a list of keywords in a given directory??
for example:
suppose i have kept all the keywords in a file called "procnamelist" (in separate line)
and i have to search recursively in a directory called "target/dir"
if i am not doing recursive search then... (4 Replies)
Discussion started by: neelmani
4 Replies
10. Linux
grep pattern filename
To search for the pattern in all files in the current directory and the sub-directories recursively, what needs to be substituted in filename? (1 Reply)
Discussion started by: ravisingh
1 Replies
LEARN ABOUT LINUX
dpkg::path
Dpkg::Path(3) libdpkg-perl Dpkg::Path(3)
NAME
Dpkg::Path - some common path handling functions
DESCRIPTION
It provides some functions to handle various path.
METHODS
get_pkg_root_dir($file)
This function will scan upwards the hierarchy of directory to find out the directory which contains the "DEBIAN" sub-directory and
it will return its path. This directory is the root directory of a package being built.
If no DEBIAN subdirectory is found, it will return undef.
relative_to_pkg_root($file)
Returns the filename relative to get_pkg_root_dir($file).
guess_pkg_root_dir($file)
This function tries to guess the root directory of the package build tree. It will first use get_pkg_root_dir(), but it will
fallback to a more imprecise check: namely it will use the parent directory that is a sub-directory of the debian directory.
It can still return undef if a file outside of the debian sub-directory is provided.
check_files_are_the_same($file1, $file2, $resolve_symlink)
This function verifies that both files are the same by checking that the device numbers and the inode numbers returned by
stat()/lstat() are the same. If $resolve_symlink is true then stat() is used, otherwise lstat() is used.
canonpath($file)
This function returns a cleaned path. It simplifies double //, and remove /./ and /../ intelligently. For /../ it simplifies the
path only if the previous element is not a symlink. Thus it should only be used on real filenames.
$newpath = resolve_symlink($symlink)
Return the filename of the file pointed by the symlink. The new name is canonicalized by canonpath().
my $cmdpath = find_command($command)
Return the path of the command if available on an absolute or relative path or on the $PATH, undef otherwise.
my $control_file = get_control_path($pkg, $filetype)
Return the path of the control file of type $filetype for the given package.
my @control_files = get_control_path($pkg)
Return the path of all available control files for the given package.
AUTHOR
Raphael Hertzog <hertzog@debian.org>.
1.16.0.3 2012-04-17 Dpkg::Path(3)