The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
listing file with other format happyv Shell Programming and Scripting 3 06-26-2007 03:17 AM
Odd File Listing and unable to deleted Jason Brice UNIX for Dummies Questions & Answers 3 05-25-2005 06:47 AM
Listing File Info AkumaTay High Level Programming 3 11-08-2002 06:48 AM
Recursive directory listing without listing files psingh UNIX for Dummies Questions & Answers 4 05-10-2002 07:52 AM
File listing Astudent UNIX for Dummies Questions & Answers 5 10-25-2000 02:36 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-28-2007
Registered User
 

Join Date: Oct 2007
Posts: 68
file listing ...

Hi experts,

I have several hundred files for everyday each month (below example is September)-

PP023149200709010546.......PP028023200709012300

PP023150200709020023.......PP026096200709022134
..
..
PP021256200709201920.......PP025576200709202218
..
..
PP022245200709301044.......PP027734200709302348

Now how can i list ('ls' command) the files if need to see september 01 to 10 (i.e. 20070901 to 20070910). ALL files remains in same directory.
please advise.

Last edited by thepurple; 12-28-2007 at 02:00 AM.
Reply With Quote
Forum Sponsor
  #2  
Old 12-28-2007
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,249
ls PP??????2007090[0-9]* PP??????20070910*
Reply With Quote
  #3  
Old 12-28-2007
Registered User
 

Join Date: Oct 2007
Posts: 68
Its works...many thanks....Just one query what is difference between using "?" & "*"

I use it for December files.
I notice If i use * in replace of ? i find there are some extra files showed which doesn't belong to December.
The reason is the file number format- TT020071200710200555
Reply With Quote
  #4  
Old 12-28-2007
Tytalus's Avatar
Registered User
 

Join Date: Jun 2003
Location: Scotland
Posts: 290
? is a wildcard for a single char.

* will expand to any number of chars
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0