1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Removing text with TPIPE

Discussion in 'Support' started by djspits, Jan 19, 2013.

  1. djspits

    Joined:
    Apr 13, 2010
    Messages:
    190
    Likes Received:
    2
    I want to remove the drive letters from a list of filespecs made with "dir /f /s /a:-d \dir\ > files.txt"

    With TPIPE I'm trying to use

    /selection=Type,Locate,Param1,Param2,MoveTo,nDelimiter,CustomDelimiter,HasHeader

    type 0 - delete column
    locate 1 - start column, width
    p1 = 1
    p2 = 2

    the rest is irrelevant so I pass zeroes.

    TPIPE keeps complaining that my "/selection" parameter is wrong (not a helpful message) in:

    tpipe /input=files.txt /selection=0,1,1,2,0,0,0,0

    Suggestions anyone?

    DJ
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    10,090
    Likes Received:
    85
    Your "/selection" parameter is wrong. ;)

    The problem is with your CustomDelimiter field -- that should be a string, not an integer. So the correct syntax looks like:

    Code:
    tpipe /input=files.txt /selection=0,1,1,2,0,0,"",0
     
  3. djspits

    Joined:
    Apr 13, 2010
    Messages:
    190
    Likes Received:
    2
    Of course. That's it. Thx Rex. I knew I was overlooking something obvious, but still didn't see it.
    If you could ever invent an /= option for TPIPE am sure someone will knight you.
    Cheers, DJ.
     

Share This Page