Trim an entire text file

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
BlackWisdom
Pro Scripter
Posts: 58
Joined: Thu Oct 16, 2003 12:53 am

Trim an entire text file

Post by BlackWisdom » Tue Dec 20, 2005 11:22 pm

Guys maybe I should start at the beginning...

I have a text file of the directory of a CD - the first three characters are for example - D:\

The challenge is since I wont know what letter is assigned to each CD drive of a system, I need to remove the first three characters of each line so that only the path is there example

if the string says d:\test\new\sample - i need to remove the first three characters so it simply says:


test\new\sample

so basically I need to remove the first 3 characters of every line

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Dec 21, 2005 12:57 am

This looks like a repeat of the same posting at http://www.mjtnet.com/forum/viewtopic.php?t=2475 ?

Making muliple threads frequently causes confusion.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts