10-21-2011
How to delete particular date directories at a time
Hi guys,
Can anyone tell me how to delete hundreds of directories of particular dates at a time?
By the below command I am able to list all particular date directories but unable to delete those,
ls -ltr | sed -n '/Oct 07/p'
Please reply ASAP, thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How do i collect Date & Time from Different Directories in a script
The script iam using for a single directory is :
ls -l | grep awk '{print $8}' (2 Replies)
Discussion started by: laknar
2 Replies
2. Shell Programming and Scripting
Hi guys,
I know that this topic has been discuss numerous times, and I have search the net and this forum for it.
However, non able to address the problem I faced so far.
I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies
3. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
I have standard web server log file. It contains different columns (like IP address, request result code, request type etc) including a date column with the format .
I have developed a log analysis command line utility that displays... (1 Reply)
Discussion started by: TariqYousaf
1 Replies
4. UNIX for Dummies Questions & Answers
Hello gurus,
I am hoping someone can help me with the required code/script to make this work. I have the following file with records starting at line 4:
NETW~US60~000000000013220694~002~~IT~USD~2.24~20110201~99991231~01~01~20101104~... (4 Replies)
Discussion started by: chumsky
4 Replies
5. Shell Programming and Scripting
Hello all!
I'm looking to list directories and sub-directories of a path, on this forum I found this command:
find $path -type d -exec ls -ld {} \;
The issue I have is that with a simple ls, the list is listed by name, and using -t I get it by time.
How could I list directories and sub... (5 Replies)
Discussion started by: nomadvisuals
5 Replies
6. UNIX for Dummies Questions & Answers
I'd like to convert a date string in the form of sun aug 19 09:03:10 EDT 2012, to unixtime timestamp using awk.
I tried
This is how each line of the file looks like, different date and time in this format
Sun Aug 19 08:33:45 EDT 2012, user1(108.6.217.236) all: test on the 17th
... (2 Replies)
Discussion started by: bkkid
2 Replies
7. Solaris
I have a cluster of two Solaris server (veritas cluster). one working and the other is standby
I am going to change the date on them , and am looking for a secure solution as it is giving an important service.
my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
Discussion started by: barry1946
1 Replies
8. Shell Programming and Scripting
I needed some help in adding a duration (in seconds) to a start time (in hhmmss format) and a start date (in mmddyy format) in order to get an end date and end time. The concept of a leap year is also to be considered while incrementing the day. The code/ function that I have formed so far is as... (3 Replies)
Discussion started by: codehelp04
3 Replies
9. Shell Programming and Scripting
Hi Folks,
My server time is in EDT. And i am sending automated mails from that server in which i need to display the current date time as per IST (GMT+5:30). Please advice how to display the date time as per IST.
IST time leads 9:30 mins to EDT. and i wrote something like below.
... (6 Replies)
Discussion started by: Showdown
6 Replies
10. UNIX for Dummies Questions & Answers
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)
Discussion started by: Siva SQL
2 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)