Ask a Question related to UNIX Programming, Design and Development.
-
Anand Agrawal #1
sorting files based on time
Hi,
I want to sort all the files based on time of modification in unix that is
if i issue 'ls -l' it should display all the files sorted based on time. i
do not want to use -t option.
I need this because, i list the files using browser and running apache
server. Is it possible ?
Thanks in Adavance.
Regards
Anand
Anand Agrawal Guest
-
FLV Loading based of time of day
I am stuck. I figured out that this site is not a live enviroment, rather using FLVs for certain days of the week - and the office is even all dark... -
get record based on date time
HI Im creating a site that generates leads. When a lead is generated it will select a broker in the list based on certain criteria. The thing i... -
Sorting a query based on URL variable
Well i dont think it's what you looking for but i made this exemple , check if you need somthing more simple i will chwck for you <cfif... -
Is director frame-based or time-based ?
I was wondering if the following is possible: Translate sprite 1 to sprite 2 in exactly 15 seconds. Can I translate that to the exact number of... -
scoring/sorting db search results based on score
looking for code snippets or links to examples of the following; - Have a database with multiple fields that will be searched against (happens to... -
Lorinczy Zsigmond #2
Re: sorting files based on time
Anand Agrawal wrote:
Pardon?!> Hi, i do not want to use -t option.
Lorinczy Zsigmond Guest
-
Anand Agrawal #3
Re: sorting files based on time
What i meant is, the default setting should be such that if i give 'ls'
command the
files are listed based on time and not by name.
"Lorinczy Zsigmond" <nospam@for.me> wrote in message
news:3F118C30.3090203@for.me...> Anand Agrawal wrote:>> > Hi, i do not want to use -t option.
> Pardon?!
>
>
Anand Agrawal Guest
-
Lorinczy Zsigmond #4
Re: sorting files based on time
alias lt='ls -lt'
Anand Agrawal wrote:
> What i meant is, the default setting should be such that if i give 'ls'
> command the
> files are listed based on time and not by name.Lorinczy Zsigmond Guest
-
Bill Marcum #5
Re: sorting files based on time
On Sun, 13 Jul 2003 18:19:05 +0530, Anand Agrawal
<anand.agrawal@indiatimes.com> wrote:I think what you want is a script that will sort the files by date> Hi,
> I want to sort all the files based on time of modification in unix that is
> if i issue 'ls -l' it should display all the files sorted based on time. i
> do not want to use -t option.
>
> I need this because, i list the files using browser and running apache
> server. Is it possible ?
>
(using ls -t, why not?), and convert the list into html (easily done in
awk or perl).
--
Here I am, fifty-eight, and I still don't know what I want to be when
I grow up.
-- Peter Drucker
Bill Marcum Guest
-
Anand Agrawal #6
Re: sorting files based on time
Hi,
I think the problem is not clear.
What i want to achieve is that, when i run http apache server which will
directly
list the files ( as i have allowed for directory listing and directory does
not have index.html file ) so by default all the files in the directory are
list if i go to that directory using browser.
By default these files are listed by name, i want to make if default by
date.
for example if i go to that directory i get the files as
Name Last modified Size Description
----------------------------------------------------------------------------
----
Parent Directory 02-Jun-2003 16:56 -
ISCQA_MOM07thJuly.doc 07-Jul-2003 17:18 61k
ISCQA_MOM12thMAY.doc 21-May-2003 10:25 49k
ISCQA_MOM14thJuly.doc 14-Jul-2003 18:05 68k
ISCQA_MOM16thJune.doc 16-Jun-2003 15:38 46k
ISCQA_MOM19thMAY.doc 21-May-2003 10:25 55k
ISCQA_MOM23rdJune.doc 23-Jun-2003 17:38 60k
After i click on Last Modified, the files are shorted based on time.
Name Last modified Size Description
----------------------------------------------------------------------------
----
Parent Directory 02-Jun-2003 16:56 -
ISCQA_MOM19thMAY.doc 21-May-2003 10:25 55k
ISCQA_MOM12thMAY.doc 21-May-2003 10:25 49k
ISCQA_MOM28thMAY.doc 29-May-2003 08:36 52k
ISCQA_MOM28thApril.doc 29-May-2003 08:37 47k
ISCQA_MOM2ndJune.doc 02-Jun-2003 17:58 53k
Regards
Anand
"Lorinczy Zsigmond" <nospam@for.me> wrote in message
news:3F12362E.6020401@for.me...> alias lt='ls -lt'
>
> Anand Agrawal wrote:
>>> > What i meant is, the default setting should be such that if i give 'ls'
> > command the
> > files are listed based on time and not by name.
Anand Agrawal Guest



Reply With Quote

