truncate directory names to certain length

Wade Preston Shearer lists at wadeshearer.com
Wed May 16 08:56:27 MDT 2007


I have a directory full of directories that are all named in the  
following manner:

#####_alpha_name


I need them renamed to just:

#####


Is there an easy way via the command line to truncate them to just  
the first five characters (which would be just their ID number)?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20070516/31a2e3d9/smime.bin


More information about the PLUG mailing list