The UNIX and Linux Forums  

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
find the length of file names in a directory? koti_rama Shell Programming and Scripting 5 06-04-2008 07:19 AM
help need to find the length of a variable smr_rashmy Shell Programming and Scripting 7 02-18-2008 03:02 AM
What the command to find out the record length of a fixed length file? tranq01 UNIX for Dummies Questions & Answers 3 10-19-2007 11:16 AM
Find, make and move file based on username Helmi UNIX for Dummies Questions & Answers 5 04-19-2007 06:49 PM
find filename based on file content kollerj UNIX for Dummies Questions & Answers 4 06-02-2001 10:31 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #8  
Old 03-26-2007
Registered User
 

Join Date: Mar 2007
Posts: 6
You may try:

Code:
#!/bin/csh -f
foreach file ( `ls -l | grep -v ^d | awk '{print $NF}'` )
     if ( `echo $file | wc -m` == 35 ) then
          printf '%s\n' $file
     endif
end
Reply With Quote
Forum Sponsor
  #9  
Old 03-26-2007
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
Code:
ls <FILEDIR> -1  |awk 'length > 10 { print }'
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:12 PM.


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