![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| What the command to find out the record length of a fixed length file? | tranq01 | UNIX for Dummies Questions & Answers | 9 | 12-04-2008 04:04 PM |
| find the length of file names in a directory? | koti_rama | Shell Programming and Scripting | 5 | 06-04-2008 10:19 AM |
| help need to find the length of a variable | smr_rashmy | Shell Programming and Scripting | 7 | 02-18-2008 06:02 AM |
| Find, make and move file based on username | Helmi | UNIX for Dummies Questions & Answers | 5 | 04-19-2007 09:49 PM |
| find filename based on file content | kollerj | UNIX for Dummies Questions & Answers | 4 | 06-02-2001 01:31 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Using find
Hi,
I think the following script should solve the problem. Code:
#!/bin/ksh
for v in $(find . -name '*' -type f -print ) ; do
f=${v##*/}
if [[ ${#f} -gt 35 ]] ; then
print " $v is the name of file with more than 35 char"
fi
done
Thanks Nagarajan Ganesan. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|