Following may help you in same. I have made similar kind of folder structure and checked it worked for me, please check and let me know if this helps.
Output will be as follows.
As in this case file is present so it is showing same only, you can use any script to execute in place of echo statement in the script. EDIT: Also want to add my present working directory was /tmp where MainFolder is present so only it is showing in output as ./MainFolder/Sub-folder_2.2/file.cmd.
Thanks,
R. Singh
Last edited by RavinderSingh13; 11-04-2014 at 02:09 AM..
Reason: Added a comment about output for more clarification
This User Gave Thanks to RavinderSingh13 For This Post:
I'm trying to find the 50 largest file in a directory named /sasdb and its' subdirectories. I'm using the find command and a pipe to awk
Not sure if I'm actually getting the largest files from this directory and its subdirectories. Here is the code I used...
find /sasdb -ls | awk '{print... (8 Replies)
Hi all
I want to find a particular file type lets say .abc under /home/oracle/, the file name is start with 'D' and followed by ddmmyyyy date format, the file name should look like this D19092008.abc To my question, how can i perform the searching from the date 19/09/2008 to 29/09/2008. The... (3 Replies)
Hi,
I wanted to delete all the files under a directory "/apps/tmp/" which are two weeks older. But i should not delete the sub-directories and the contents of sub-directories.
I also have searched in forum and found the following command,
find . \( ! -name . -prune \) -mtime +13 -print
... (8 Replies)
I have a directory (and many sub dirs beneath) on AIX system, containing thousands of file. I'm looking to get a list of all directory containing "*.pdf" file.
I know basic syntax of find command, but it gives me list of all pdf files, which numbers in thousands. All I need to know is, which... (4 Replies)
Hello all,
I am having a hard type in figuring out how to only gather certain files in the current directory without exploring its subdirectories.
I tried:
find . -name "*.ksh" -prune
this also returns ksh files from lower subdirectories.
I also tried
find . -ls -name "*.ksh"
This also... (8 Replies)
Ok i have three directories
Destination - /u/dir1 (has subdirectories dir2 which also has subdirectory dir3)
Source1 - /u/test/files/dir1/dir2/dir3
Source2 - /u/out/images/dir1/dir2/dir3
What i would like to do is copy everything from Source1 and Source2 into the Destination directory.... (3 Replies)
Hi All,
I am creating one script to Archive the older log files to Archive folder and deleting older files.
For example below path contains different sub folders. So searching for log files older than 2 days then zip and moving to Archive directory in the same directory.
Source files :-... (4 Replies)
Find all files in the current directory only excluding hidden directories and files.
For the below command, though it's not deleting hidden files.. it is traversing through the hidden directories and listing normal which should be avoided.
`find . \( ! -name ".*" -prune \) -mtime +${n_days}... (7 Replies)
Discussion started by: ksailesh1
7 Replies
LEARN ABOUT DEBIAN
cvsd-buildroot
cvsd-buildroot(8) System Manager's Manual cvsd-buildroot(8)NAME
cvsd-buildroot - create a chrooted directory structure for use in cvsd.
SYNOPSIS
cvsd-buildroot DIRECTORY
DESCRIPTION
cvsd-buildroot creates and populates a directory that can be used as a chroot jail for running cvsd (see cvsd(8) ) in.
This script should be run as the root user since the creation of devices and the changing of ownership and permissions require this.
The script gives warnings about files that it's not expecting.
cvsd-buildroot creates the following directory structure:
/bin This directory is populated with the cvs binary that is found on the system.
/lib This directory is populated with all the libraries that are required for running programs in the /bin directory as well as some
predefined required libraries that are present on the system.
/dev Here null and zero devices are created.
/etc In this directory a passwd file is created that is used for matching user id's with usernames. The root and cvsd user are added to
this file if they're not there yet. The passwd file is checked for consistency with the system /etc/passwd to prevent mistakes.
The passwd file is also populated with users referenced in the repository directories. Note that no password data from /etc/passwd
or any other file is stored in the generated passwd file, all password entries are set to 'x'.
/usr Here symbolic links are placed to /bin and /lib for some common library and binary directories found on the system. This is done
for systems that have hard-coded paths for libraries.
/libexec and /usr/libexec
Symbolic links for these directories are created if they are present on the system.
/tmp This directory is cleaned out on systems that have tmpreaper.
After the directories are created and populated ownership and rights are set to a reasonable value (root:root,umask=022).
OPTIONS
cvsd-buildroot takes one argument, namely a directory in which the chroot jail will be created. The directory should be specified with an
absolute path.
NOTES
Creating a chroot environment is a terribly non-portable thing to do and therefore you may experience problems with missing libraries and
system files. For more information see the FAQ and the README. If you have to install libraries or perform actions not covered by
cvsd-buildroot please report your findings to <cvsd-users@lists.arthurdejong.org>.
Rerunning cvsd-buildroot after you have created your repository is advised since the repositories are checked for references to userid's
and lockfile directories.
SEE ALSO cvsd(8)
README
FAQ
AUTHOR
Arthur de Jong <arthur@arthurdejong.org>.
Version 1.0.24 Jun 2012 cvsd-buildroot(8)