05-04-2007
Oldest files
Anyone know of a way to list all of the files including subdirectories and list them as oldest first?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm writing a script to find the oldest file in a directory. I know this can be done by using ls -rt | tail -1 but these are rather large directories and that can be somewhat slow since the script will be running constantly.
Are there any other ways to do this that would be faster? I looked to... (2 Replies)
Discussion started by: bergerj3
2 Replies
2. Shell Programming and Scripting
Hi, Please help me out
I want to grep the oldest file in a directory,
could I use "ls" command?
and how?
thanx in advance (1 Reply)
Discussion started by: ericaworld
1 Replies
3. Shell Programming and Scripting
hello people
i need your help please
i want to achieve the following with the simplest, most efficient shell-tools:
i have a directory with a lot of files from users.
the script should check which partition the dir is on
if the partition with the directory is more than 90% full
... (2 Replies)
Discussion started by: scarfake
2 Replies
4. Shell Programming and Scripting
Hi:-
I need help with a script I need to modify: - what's the best/easiest way to find out the oldest file in a directory and then move this file to another directory?
Thanks, (5 Replies)
Discussion started by: janet
5 Replies
5. Shell Programming and Scripting
Hi
I am want to create a script where the file gets moved from the current folder to a folder transfer based on the oldest first. This script should run one file at a time using a loop. I want it as a loop because I want to do some processing while I have one file. Can anyone guide me on this? (2 Replies)
Discussion started by: chamajid
2 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I need to delete the oldest file in folder when the file count in the folder exceed 6 ( i have a process that puts the source files into this folder )
E.x : Folder : /data/opt/backup
01/01/2012 a.txt
01/02/2012 b.txt
... (1 Reply)
Discussion started by: akshay01987
1 Replies
7. Shell Programming and Scripting
I need a script to clean up the files on our backup system. I was hoping this would be simple for someone to put together for me.
I'm sure I could do it, but I'm a bash n00b so it would definitely not be efficiently or within a reasonable amount of time. :(
Requirements:
- Root of backups... (3 Replies)
Discussion started by: Calab
3 Replies
8. UNIX for Advanced & Expert Users
There are some 25,000 files in 7,000 directories in my source library and I am trying to find oldest files. I am running this find:
find /usr/mysrc -name "*." -type f -mtime +8000 -exec ls -l {} 2>/dev/null
and playing with the days parameter for mtime, but the output is not sorted... (3 Replies)
Discussion started by: migurus
3 Replies
9. Shell Programming and Scripting
Trying to delete my 3 oldest files.
I am learning despite the many questions.
This shows the files.
ls -1r /media/andy/MAXTOR_SDB1/Ubuntu_Mate_18.04/Ubuntu_Documents.zip_* | tail -n+6adding this on did not work.
| -exec rm {}------ Post updated at 05:43 PM ------
This works, but I... (15 Replies)
Discussion started by: drew77
15 Replies
10. Shell Programming and Scripting
Hello,
I have a simple while loopinside the script and I wish to tell unix to start reading from the oldest txt file. So, in case some new txt files are transferred into the same folder, the script will not take into consideration until all older files are completely processed. How may I do this?... (3 Replies)
Discussion started by: baris35
3 Replies
LEARN ABOUT CENTOS
t1libconfig
T1LIBCONFIG(8) System Manager's Manual T1LIBCONFIG(8)
NAME
t1libconfig - create the t1lib.config and FontDataBase files for t1lib
SYNOPSIS
t1libconfig [ -v,--version ] [ -h,--help ] --force ] [ fontdirectory... ]
DESCRIPTION
t1libconfig scans a list of directories for Type 1 fonts and font metric files, and generates a configuration file and font database file
for the t1lib rasterizer library accordingly. By default, it looks in all subdirectories of /usr/X11R6/lib/X11/fonts, and in
/usr/lib/ghostscript. Extra directories to search may be specified on the command line. The t1libconfig script tries not to scan the same
directory twice (this is, however, not foolproof, since /usr/X11R6/lib/X11/fonts and /usr/lib/X11/fonts typically point to the same direc-
tory on GNU/Linux systems).
OPTIONS
-v,--version
Print the version of t1libconfig and exit.
-h,--help
Print help about usage and exit.
--force
Force the generation of new configuration files even if these files already exist on the system.
FILES
/etc/t1lib/t1lib.config Contains configuration information for t1lib, including colon-separated lists of paths to Type 1 font files and
font metrics files, and the location of the default font database file
/etc/t1lib/FontDataBase Contains a list of the names of Type 1 font files to be used by t1lib.
AUTHOR
David Huggins-Daines <dhd@debian.org>
SEE ALSO
FontDataBase(5)
T1LIBCONFIG(8)