Then split will break. You'd have to go with substr (which would be platform-dependent) or change the ls pipe from 'ls -l' to 'ls -1'. *shrugs*
------ We are the carpenters and bricklayers of the Information Age. The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6 Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
| [reply] |
Just curious, how is substr platform-dependent? And how is ls not platfrom-dependent?
Nonsense. You never liked me anyway. You wouldn’t even come to my birthday party! |
| [reply] |
The output of 'ls -l' is dependent on which *nix you're using. Hence, the index into substr will change depending on the *nix you run on. 'ls -l' is actually not as platform-dependent as you think. It runs on Win2003Pro ...
------ We are the carpenters and bricklayers of the Information Age. The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6 Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
| [reply] |