The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
get Message from file within date range ambharish UNIX for Dummies Questions & Answers 2 06-29-2007 05:20 PM
[Urgent]how to print the file names into a txt file??? kumarsaravana_s Shell Programming and Scripting 15 03-12-2007 03:32 AM
Report file extraction based on Date range ganapati Shell Programming and Scripting 2 07-13-2006 11:26 AM
Log File date compare for user defined range mojo24 Shell Programming and Scripting 0 05-05-2006 06:39 AM
Displaying file names before a particular creation date dhruv_saksena UNIX for Dummies Questions & Answers 1 09-02-2005 08:19 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-08-2001
Shamwari Shamwari is offline
Registered User
  
 

Join Date: Oct 2001
Location: Johannesburg, South Africa
Posts: 1
Question Need to print file names in a certain date range using ls

I need to list only file names of a specific date from the command ls -lt.
  #2 (permalink)  
Old 10-08-2001
punter5 punter5 is offline
Registered User
  
 

Join Date: Oct 2001
Location: USA..Georgia
Posts: 2
Try using:

ls -lt | grep 'Date'

Example: ( Using Solaris 7 )

If you were looking for files on July 4, 2000 you would

ls -lt | grep 'Jul 4 2000'
ls -lt | grep 'Jul(2spaces)4(2spaces)2000'

If you were looking for files on November 30, 1998 you would

ls -lt | grep 'Nov 30 1998'
ls -lt | grep 'Nov(1space)30(2spaces)1998'

You must be careful with your spacing. Run ls -l and pay close attention to the way the date field is spaced.

Hope this helps.
  #3 (permalink)  
Old 10-08-2001
sskb
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Arrow

in the same thing.. if i want the files in a time interval, what should i change?

for example.. i want files modified from 1st oct 2001 to 5th oct 2001.

Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:53 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0