Distribution Lists wrote:
>
>Thanks but I've that already try that
>
>C:\temp>perl -pi.bak -e "s/\s+/,/g" tempfile.out
>
>C:\temp>more < tempfile.out
>Server,Drive,FSTYPE,Size,Free,Used,SERVER1,C$,NTFS,4095,296,3799,SERVER1,D$,NTFS
>,4001,1908,2093,SERVER1,C$,NTFS,38123,29808,8315,
>
>The only th
That worked great!
Thanks Darryl
> On Mar 12, 2004, at 3:19 PM, Distribution Lists wrote:
>
>> Thanks but I've that already try that
>>
>> C:\temp>perl -pi.bak -e "s/\s+/,/g" tempfile.out
>
> Add the -l switch to that to chomp the newline and replace it when it
> prints:
>
> perl -pli.bak -e "s/\s+
On Mar 12, 2004, at 3:19 PM, Distribution Lists wrote:
Thanks but I've that already try that
C:\temp>perl -pi.bak -e "s/\s+/,/g" tempfile.out
Add the -l switch to that to chomp the newline and replace it when it
prints:
perl -pli.bak -e "s/\s+/,/g" tempfile.out
James
C:\temp>more < tempfile.
Thanks but I've that already try that
C:\temp>perl -pi.bak -e "s/\s+/,/g" tempfile.out
C:\temp>more < tempfile.out
Server,Drive,FSTYPE,Size,Free,Used,SERVER1,C$,NTFS,4095,296,3799,SERVER1,D$,NTFS,4001,1908,2093,SERVER1,C$,NTFS,38123,29808,8315,
The only thing that is missing is that after fiel
On Mar 12, 2004, at 2:55 PM, Distribution Lists wrote:
Can someone please tell what regular expression would change
Server Drive FSTYPE Size Free Used
SERVER1 C$ NTFS4095 296 3799
SERVER2 D$ NTFS4001 1908 2093
SERVER3 C$
Can someone please tell what regular expression would change
Server Drive FSTYPE Size Free Used
SERVER1 C$ NTFS4095 296 3799
SERVER2 D$ NTFS4001 1908 2093
SERVER3 C$ NTFS 38123 29811 8312
to
Server,Drive