You don't mention the OS you are using. If you have a GNU find the -printf option will assist with this task.
You could try:
This will give modification time and files name in this format:
Other info like filesize, permissions, etc are also available using the -printf option.
As far as feedback goes if you've been managing this huge directory on a system for a while you probably realize it's not a good idea. Many simple commands, shell auto completes etc. will take a long time and usually require processes to be killed. If your migrating this I would consider a sub folder layout, this could be derived from the filename created date etc.
Last edited by Chubler_XL; 10-25-2019 at 03:43 PM..
This User Gave Thanks to Chubler_XL For This Post:
I am trying to load a group of files and their last dates modified into a text file that will in turn be used with SQL*Loader to load these files into Oracle. I am using a *.ksh script. I am getting the name of the file in by using the following:
for file_ext in 'cat loaddir.ext';
do
find... (2 Replies)
I only know how to list all sub-directories or files in specified directory. I don't know how to order them by modified date, furthermore, I don't know how to get the top one file in the sorted list. Wish you can do me a favor. Thanks in advance! (3 Replies)
Hi
How to list all the files in a directory that are modified on a particular date?
Also need to know the count,i.e number of files modified on a particular date.
Thanks
Ashok (1 Reply)
Hi,
I am new bie to Unix. Might be a simple question I am asking.
I want to find the last modified time of a file and find the difference between the currrent time and the last modified time. Appreciate, if someone can throw some light on what commands can be used.
Cheers,
James (2 Replies)
Hi there
Im trying to find a way to test whether the last modified time is older than 1 day or not
so
#!/bin/bash
if ; then
$TOUCHED = "recently"
else
$TOUCHED = "not so recently"
fi
ive seen loads of posts where people are using find and the -mtime property but i... (2 Replies)
I wan to pick the latest modified file name and redirect it to a file ..
ls -tr | tail -1 >file
but this is printing file ins side the filename ,
can anyone help me out (5 Replies)
Hi ,
In my directory , i have many days file but i want to see all those which are of todays date.
i tried this but it gives all the files
mtime -0 |ls -ltr
I tried the below option as well.
19635 find -iname "*.LOG" -mtime
19636 ls -ltr *.LOG -mtime -1
19637 ls -ltr *.LOG... (7 Replies)
I'm using a script that I need to get a file's "last modified date" in a format like 01:51:14 PM. We are running on AIX 6.1.0.0. I can't seem to find the right command parameters. Help! (4 Replies)
Hi,
Am performing a find based on filename and result can contain multiple files being found
Let's say my find command is
find /Archive -f -name 12345.pdf
and result of find command is
/Archive/Folder A/12345.pdf
/Archive/Folder B/12345.pdf
please note white space in folder names
I... (2 Replies)
Discussion started by: gigagigosu
2 Replies
LEARN ABOUT DEBIAN
svn::web::browse
SVN::Web::Browse(3pm) User Contributed Perl Documentation SVN::Web::Browse(3pm)NAME
SVN::Web::Browse - SVN::Web action to browse a Subversion repository
SYNOPSIS
In config.yaml
actions:
...
browse:
class: SVN::Web::Browse
action_menu:
show:
- directory
link_text: (browse directory)
...
DESCRIPTION
Returns a file/directory listing for the given repository path.
OPTIONS
rev The repository revision to show. Defaults to the repository's youngest revision.
TEMPLATE VARIABLES
at_head
A boolean value, indicating whether or not the user is currently browsing the HEAD of the repository.
context
Always "directory".
entries
A list of hash refs, one for each file and directory entry in the browsed path. The list is ordered with directories first, then
files, sorted alphabetically.
Each hash ref has the following keys.
name The entry's name.
path The entry's full path.
rev The entry's most recent interesting revision.
size The entry's size, in bytes. The empty string '' for directories.
type The entry's "svn:mime-type" property. Not set for directories.
author The userid that committed the most recent interesting revision for this entry.
date The date of the entry's most recent interesting revision, formatted according to "Time and date formatting" in SVN::Web.
msg The log message for the entry's most recent interesting revision.
rev The repository revision that is being browsed. Will be the same as the "rev" parameter given to the action, unless that parameter was
not set, in which case it will be the repository's youngest revision.
youngest_rev
The repository's youngest revision.
EXCEPTIONS
(path %1 does not exist in revision %2)
The given path is not present in the repository at the given revision.
(path %1 is not a directory in revision %2)
The given path exists in the repository at the given revision, but is not a directory. This action is only used to browse directories.
COPYRIGHT
Copyright 2003-2004 by Chia-liang Kao "<clkao@clkao.org>".
Copyright 2005-2007 by Nik Clayton "<nik@FreeBSD.org>".
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
perl v5.14.2 2012-06-11 SVN::Web::Browse(3pm)