Re: Stripping the beginning of a line of spaces

2008-10-11 Thread John W. Krahn
AndrewMcHorney wrote: Hello Hello, I am working on a script that does a directory of a Windows drive. There are some lines returned where there are spaces before the 1st character. If it's the first character then by definition it can't have anything before it. This throws off the spli

Re: Stripping the beginning of a line of spaces

2008-10-11 Thread AndrewMcHorney
Hello Now the question how does this put this into a line of code? Say I have $String1 and $String2 where I want to do $String1 = $String2 with the conversion. What would the code look like? Andrew At 05:23 PM 10/11/2008, Mr. Shawn H. Corey wrote: On Sat, 2008-10-11 at 16:58 -0700, AndrewMc

Re: Stripping the beginning of a line of spaces

2008-10-11 Thread Mr. Shawn H. Corey
On Sat, 2008-10-11 at 16:58 -0700, AndrewMcHorney wrote: > Hello > > I am working on a script that does a directory of a Windows drive. > There are some lines returned where there are spaces before the 1st > character. This throws off the splitting of the line into an array. > How can I strip t

Stripping the beginning of a line of spaces

2008-10-11 Thread AndrewMcHorney
Hello I am working on a script that does a directory of a Windows drive. There are some lines returned where there are spaces before the 1st character. This throws off the splitting of the line into an array. How can I strip the leading characters in an efficient way into either the same stri