User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 402,660 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,225 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums

Script to list dir path and count characters?

Join Date: Oct 2005
Posts: 6
Reputation: pichels is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
pichels pichels is offline Offline
Newbie Poster

Script to list dir path and count characters?

  #1  
Apr 30th, 2008
Hi,

I need to search a large Directory Path and count all the characters(Even filenames with space and special chars, etc.) in it.
Example:

/data/general\Customer_Order_Files\Pump_Files\Pump_Open_Files\1217697 METSO MINERALS HITACHI AMERON DUCK CREEK\1217697 MOTOR INFO METSO MIN HITACHI AMER DUCK CREEK 10-3-06\1217697 Motor Quote SIEMENS METSO MIN HIT AMER DUCK CREEK 10-16-06 .pdf

We are trying to search all Directory paths that users have created and limit them to 240 chars or 10 Directory levels and 24 chars per Directory or Filename for a full character count of 240.

Why you ask? <smile>
We have encountered issues trying to copy the above file path to a Windows 2003 server from Linux via Samba share.

Any help is greatly appreciated!

Thanks.

SP
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 3:40 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC