Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


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 !!

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-01-2013
Registered User
 
Join Date: Feb 2013
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
[Solved] Listing files starting with p or f and with the exact length of 3 characters

Hello,

I need some help.

How can I list files starting with p or f and with the exact length of 3 characters?

Last edited by radoulov; 02-01-2013 at 09:07 AM.. Reason: Marked as solved.
Sponsored Links
    #2  
Old 02-01-2013
Scrutinizer's Avatar
Moderator
 
Join Date: Nov 2008
Location: Amsterdam
Posts: 7,351
Thanks: 144
Thanked 1,756 Times in 1,593 Posts

Code:
ls [pf]??

The Following User Says Thank You to Scrutinizer For This Useful Post:
airbebe (02-01-2013)
Sponsored Links
    #3  
Old 02-01-2013
Registered User
 
Join Date: Feb 2013
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Yep. Just like that...

I was trying with find, grep ... and a lot of other combinations.

Thanks!
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need to find lines where the length is less than 50 characters Gangadhar Reddy Shell Programming and Scripting 4 08-13-2012 07:51 AM
Listing full file names with the exact length of 3 characters Joesgrrrl UNIX for Dummies Questions & Answers 7 12-10-2008 06:00 AM
Listing all the files names not starting as valluvan UNIX for Dummies Questions & Answers 13 11-28-2008 10:33 AM
Recursive directory listing without listing files psingh UNIX for Dummies Questions & Answers 4 05-10-2002 10:52 AM
finding exact characters jrdnoland1 UNIX for Dummies Questions & Answers 3 03-25-2002 09:52 PM



All times are GMT -4. The time now is 05:58 AM.