Hi guys,
I want to copy folder and sub folders only. I don't want the files. If i use cp -r command it will copy entirely with files.
Could any one suggest me.
Thanks in advance (1 Reply)
Hi ,
I am very new to unix as well as shell scripting. I have to write a script for the following requirement.
In a particular mount, have to list all the directories and sub directories along with size of the directory and sub directory in ascending order.
Please help me in this regard and many... (4 Replies)
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)
Hi,
Seems like I need help again with a problem:
I want to delete all files from my lets say "Music" Directory inkluding all of the subfolders
except for .mp3 and .MP3 files.
I tried it with globalignoring mp3 files, finding and deleting all other files, which
resulted in all files... (3 Replies)
my directory structure is like below:
basedir\
p.txt
q.htm
r.java
b\
abc.htm
xyz.java
c\
p.htm
q.java
rst.txt
my requirement is i want to copy all the files and directories... (0 Replies)
Can anyone come up with a unix command that lists
all the files, directories and sub-directories in the current directory
except a folder called log.?
Thank you in advance. (7 Replies)
It is for HP-Unix B.11.31.
Requirement:
1. List the directories, having given pattern in the directories name, sorted by creation date.
Example: Directories with name "pkg32*" or "pkg33*"
2. On the output of 1. list the directories by creation date as sort order, with creation date... (2 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)
hello.
I try to print a list of files but excluding some directories and some files.
I would like to write a command for :
find "from_dir" "ignore dir1, dir2, ..." "ignore file1, file2,...." "where file are older than 2017-02-03T06:00:00"
Note that "DO_IT" is a local function in the script... (5 Replies)
Discussion started by: jcdole
5 Replies
LEARN ABOUT DEBIAN
svn-clean
SVN-CLEAN(1) User Commands SVN-CLEAN(1)NAME
svn-clean - Wipes out unversioned files from Subversion working copy
SYNOPSIS
svn-clean [options] [directory or file ...]
DESCRIPTION
svn-clean will scan the given files and directories recursively and find unversioned files and directories (files and directories that are
not present in the Subversion repository). After the scan is done, these files and directories will be deleted. Files which match patterns
in the svn-clean:ignore dir property will be spared, much as the svn:ignore property works for svn status.
If no file or directory is given, svn-clean defaults to the current directory (".").
svn-clean uses the SVN Perl modules if they are available. This is much faster than parsing the output of the svn command-line client.
OPTIONS -e, --exclude
A regular expression for filenames to be exluded. For example, the following command will skip files ending in ".zip":
svn-clean --exclude '.zip$'
Multiple exclude patterns can be specified. If at least one matches, then the file is skipped. For example, the following command
will skip files ending in ".jpg" or ".png":
svn-clean --exclude '.jpg$' --exclude '.png$'
The following command will skip the entire "build" subdirectory:
svn-clean --exclude '^build(/|$)'
-f, --force
Files to which you do not have delete access (if running under VMS) or write access (if running under another OS) will not be
deleted unless you use this option.
-N, --non-recursive
Do not search recursively for unversioned files and directories. Unversioned directories will still be deleted along with all their
contents.
-q, --quiet
Do not print progress info. In particular, do not print a message each time a file is examined, giving the name of the file, and
indicating whether "rmdir" or "unlink" is used to remove it, or that it's skipped.
-p, --print
Do not delete anything. Instead, print the name of every file and directory that would have been deleted.
-?, -h, --help
Prints a brief help message and exits.
--man Prints the manual page and exits.
AUTHOR
Simon Perreault <nomis80@nomis80.org>
2014-03-12 SVN-CLEAN(1)