Sponsored Content
Top Forums Shell Programming and Scripting Traverse Directory Tree for backup Post 302088361 by reborg on Monday 11th of September 2006 06:16:05 PM
Old 09-11-2006
No duplicate thread or cross-posting - closed.
 

10 More Discussions You Might Find Interesting

1. Programming

Directory tree search???

Hi all, I've got a problem, what function do i use to list the contents of all the directory tree (simular to "find")? Any other suggestions? Thank you all (3 Replies)
Discussion started by: solvman
3 Replies

2. Programming

directory as tree

hi i have modified a program to display directory entries recursively in a tree like form i need an output with the following guidelines: the prog displays the contents of the directory the directory contents are sorted before printing so that directories come before regular files if an entry... (2 Replies)
Discussion started by: anything2
2 Replies

3. Shell Programming and Scripting

Searching directory tree

I'm currently trying to write a script that will do the following: search a given directory tree for a file with MMDDYYYY in the name. delete those files only. I can't figure out how to make the script delete the files with the MMDDYYYY in the filename after finding them. Should I export... (7 Replies)
Discussion started by: blane
7 Replies

4. Shell Programming and Scripting

directory tree

Hi all, The following is a script for displaying directory tree. D=${1:-`pwd`} (cd $D; pwd) find $D -type d -print | sort | sed -e "s,^$D,,"\ -e "/^$/d"\ -e "s,*/\(*\)$,\:-----\1,"\ -e "s,*/,: ,g" | more exit 0 I am trying to understand the above script.But... (3 Replies)
Discussion started by: ravi raj kumar
3 Replies

5. UNIX for Dummies Questions & Answers

Move all files in a directory tree to a signal directory?

Is this possible? Let me know If I need specify further on what I am trying to do- I just want to spare you the boring details of my personal file management. Thanks in advance- Brian- (2 Replies)
Discussion started by: briandanielz
2 Replies

6. Shell Programming and Scripting

Traverse through directory....

hi I have a directory structure like Parent Parent/child1/ Parent/child2/ Parent/child3/ and the each main directory contains Parent/child1/file1.txt, Parent/child1/fil2.zip ....... Parent/child2/file1.txt,Parent/child/fil2.zip ...... Now i want to traverse to each and want to... (1 Reply)
Discussion started by: Reddy482
1 Replies

7. UNIX for Dummies Questions & Answers

directory tree with directory size

find . -type d -print 2>/dev/null|awk '!/\.$/ {for (i=1;i<NF;i++){d=length($i);if ( d < 5 && i != 1 )d=5;printf("%"d"s","|")}print "---"$NF}' FS='/' Can someone explain how this works..?? How can i add directory size to be listed in the above command's output..?? (1 Reply)
Discussion started by: vikram3.r
1 Replies

8. Shell Programming and Scripting

How to traverse directory structure and sum size of files?

How do I write a bash or ruby or perl or groovy script to print all the files in my directory tree that are one-to-two years old, the size of each file, and the sum of file sizes and then delete them? I was using find . -atime +365 -exec rm '{}' \; but the problem was that I could not... (5 Replies)
Discussion started by: siegfried
5 Replies

9. Shell Programming and Scripting

Specific directory parsing in a directory tree

Hi friends, Hello again :) i got stuck in problem. Is there any way to get a special directory from directory tree? Here is my problm.." Suppose i have one fix directory structure "/abc/xyz/pqr/"(this will be fix).Under this directory structure i have some other directory and... (6 Replies)
Discussion started by: harpal singh
6 Replies

10. Shell Programming and Scripting

Traverse Latest directory First

I wish to traverse the latest to the oldest directory based on its timestamp. ls -ltr drwxr-x--- 3 admin bel 1024 Jan 22 02:29 sys drwxr-x--- 2 admin bel 2048 Jan 22 02:30 admin drwxr-x--- 10 admin bel 24576 Jan 23 21:31 bin For the above i need to cd first to... (2 Replies)
Discussion started by: mohtashims
2 Replies
EXPIREOVER(8)						      System Manager's Manual						     EXPIREOVER(8)

NAME
expireover - Expire entries from the news overview database SYNOPSIS
expireover [ -e ] [ -f file ] [ -k ] [ -N ] [ -p ] [ -q ] [ -s ] [ -w number ] [ -z rmfile ] [ -Z lofile ] DESCRIPTION
Expireover expires entries from the news overview database. It reads a list of newsgroup list ( <pathdb in inn.conf>/active). (A file name of ``-'' may be used to specify the standard input.) It then removes any mention of those articles from the appropriate overview database. If ``groupbaseexpiry'' in inn.conf is ``true'', expireover also expires articles. If it's ``false'', ``-e'', ``-k'', ``-N'', ``-p'', ``-q'', ``-w'' and ``-z'' flags are ignored. OPTIONS
-e If the ``-e'' flag is used, then as soon as the first cross posting of the article expires, all overview entries relevant to the article are removed. Note that you cannot use both ``-e'' and ``-k'' flag at the same time. -f When the ``-f'' flag is used, then expireover will use it as newsgroup list instead of <pathdb in inn.conf>/active file. A name of ``-'' is taken to mean the standard input. -k When the ``-k'' flag is used, then articles are removed when they have been expired from all the groups they appear in. Note that you cannot use both ``-e'' and ``-k'' flag at the same time. -N If the storing method has self expire functionality, then the control file is ignored for that article by default. If the ``-N'' flag is used, expireover purges articles and overview entries with the control file. -p Expireover makes its decisions on the time the article arrived by default. This means articles are often kept a little longer than with other expiration programs that base their decisions on the article's posting date. To use the article's posting date, use the ``-p'' flag. -q Expireover normally prints statistics at the end of process. To suppress this action, use the ``-q'' flag. -s Expireover normally checks the existense of articles only if ``EXPENSIVESTAT'' of its storage method is set to ``FALSE''. To do stat all articles regardless of ``EXPENSIVESTAT'', use the ``-s'' flag. See storage.conf(5) for ``EXPENSIVESTAT''. -w Use the ``-w'' flag to ``warp'' time so that expireover thinks it is running at some time other then the current time. The value should be a signed floating point number of the number of days to use as the offset. -z If the ``-z'' flag is used, then articles are not removed, but their toknes are appended to the specified file. See the description of delayrm in news.daily(8). -Z If the ``-Z'' flag is used, then the lowest article numbers for each newsgroup after expiry are written to the specified lofile with newsgroup name. This flag can be used when doing ``ctlinnd lomark lofile''. HISTORY
Written by Rob Robertson <rob@violet.berkeley.edu> and Rich $alz <rsalz@uunet.uu.net> (with help from Dave Lawrence <tale@uunet.uu.net>) for InterNetNews. This is revision 1.9.2.3, dated 2002/04/14. SEE ALSO
active(5), ctlinnd(8). inn.conf(5), news.daily(8). EXPIREOVER(8)
All times are GMT -4. The time now is 03:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy