I have a task to move more than 35000 files every two hours, from the same directory to another directory based on a file that has the list of filenames
I tried the following logics
(1)
find . -name \*.dat > list
for i in `cat list` do mv $i test/ done
(2)
cat list|xargs -i mv "{}"... (7 Replies)
I want to tar large number of files about 150k.
i am using the find command as below to create a file with all file names.
& then trying to use the tar -I command as below.
# find . -type f -name "gpi*" > include-file
# tar -I include-file -cvf newfile.tar
This i got from one of the posts... (2 Replies)
Hellow i have a large number of files that i want to concatenate to one. these files start with the word 'VOICE_' for example
VOICE_0000000000
VOICE_1223o23u0
VOICE_934934927349
I use the following code:
cat /ODS/prepaid/CDR_FLOW/MEDIATION/VOICE_* >> /ODS/prepaid/CDR_FLOW/WORK/VOICE
... (10 Replies)
Hi Forum.
I was trying to search the following scenario on the forum but was not able to.
Let's say that I have a very large file that has some bad data in it (for ex: 0.0015 in the 12th column) and I would like to find the line number and remove that particular line.
What's the easiest... (3 Replies)
Hi. I need to delete a large number of files listed in a txt file. There are over 90000 files in the list. Some of the directory names and some of the file names do have spaces in them.
In the file, each line is a full path to a file:
/path/to/the files/file1
/path/to/some other/files/file 2... (4 Replies)
Hi All,
I have searched this forum for related posts but could not find one that fits mine. I have a shell script which removes all the XML tags including the text inside the tags from some 4 million XML files.
The shell script looks like this (MODIFIED):
find . "*.xml" -print | while read... (6 Replies)
Hi,
I have a large number of subdirectories (>200), and in each of these directories there is a file with a name like "opp1234.dat".
I'd like to know how I could change the names of these files to say "out.dat" in all these subdirectories in one go.
Thanks! (5 Replies)
Want to sftp large number of files ... approx 150 files will come to server every minute. (AIX box)
Also need make sure file has been sftped successfully...
Please let me know :
1. What is the best / faster way to transfer files?
2. should I use batch option -b so that connectivity will be... (3 Replies)
Hi All,
I am having a situation now to delete a huge number of temp files created during run times approx. 16700+ files. We have never imagined that we will get this this much big list of files during run time. It worked fine for lesser no of files in the list. But when list is huge we are... (7 Replies)
Hello.
I am searching file between dates and try to apply the comments from Chubler_XL in my thread : Linux find command : how to use multiple conditions
But i get a null result as i am expecting to find 32 files.
Setting my computer date to the date of the thread ( 30/05/2019 ) and... (4 Replies)
Discussion started by: jcdole
4 Replies
LEARN ABOUT DEBIAN
lurker-prune
LURKER-PRUNE(1) General Commands Manual LURKER-PRUNE(1)NAME
lurker-prune -- prunes the web-server cache
SYNOPSIS
lurker-prune [-c <config-file>] [-f <frontend>] [-m <days>] [-a <days>] [-p -v]
DESCRIPTION
lurker-prune prunes obsolete or stale files from the web-server accessible cache. This command must be run at regular intervals from eg. a
cronjob. If it is not run, then the lurker web interface will appear to not be receiving new mail or have contradictory links between
pages. A good interval is every 15 minutes and should not exceed one hour.
Be aware that it is possible for an attacker to use up a large amount of disk space through lurker. An attacker could request many distinct
lurker web pages each of which is cached, thus using disk space. Please setup a quota for the lurker user, read your logs, and follow what-
ever site-specific policies you have for denial of service.
A good script to run in parallel with normal lurker-prune use is one similar to: if test `du -s /var/www/lurker | cut -f1` -gt 32768; then
lurker-prune -p; fi This might help guard against a potential denial-of-service attack.
OPTIONS -c config-file
Use this config file for lurker settings.
-f frontend
The directory of the lurker frontend cache to clean. You can selectively purge cache with this option. By default, lurker-prune
will clean all frontends specified in the config file.
-m days Keep cached files for at most this many days. Any cached file regardless of last access will be deleted after the specified num-
ber of days (defaults to 7). Files which are obsolete due to new mail, config changes, or no accesses will be deleted earlier.
Deleted files will be automagically regenerated if needed.
-a days Kill cache files not accessed for this many days. Any cached file which has not been read from for the specified number of days
(defaults to 1) will be deleted. Files which are obsolete due to new mail or config changes will be deleted earlier. Deleted
files will be automagically regenerated if needed.
-p Purge mode. Delete all cache files even if they do not appear to be expired. This will only deletes files that are generated by
lurker, and is thus preferable to rm */*.
-v Verbose operation. Indicate which files are being deleted and the reasoning behind lurker's decisions. This can help in tracking
down why some files are deleted and not others.
SEE ALSO lurker-index(1), lurker-params(1), lurker-list(1)
lurker documentation on http://lurker.sourceforge.net/
COPYRIGHT
Copyright (C) 2002: Wesley W. Terpstra <terpstra@users.sourceforge.net>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
BUGS
Before reporting a bug, please confirm that the bug you found is still present in the latest official release. If the problem persists,
then send mail with instructions describing how to reproduce the bug to <lurker-users@lists.sourceforge.net>.
LURKER-PRUNE(1)