At 10:16 -0800 3/02/02, in message Re: [Pythonmac-SIG] Strange ?, Larry Meyn wrote: >Note, len('HD:Dev:stats usenet:Classement') = 30 >Try: > >print sys.argv[1:] >files = sys.argv[1:] >for file in files: > out = file.split(':')[-1] > if len(out)>30: out = out[:30] + ' ' > print out Thanks, chasing for the wrong reason ;-) I'll use os.path to do it.