in reply to Cleaning file

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: Cleaning file
by mk. (Friar) on Aug 22, 2006 at 14:16 UTC
    sorry, i don't actually get what you're trying to achieve with this regexp. it only replaces one or more spaces with the expression "^[A-Z][0-9]". perhaps you meant this?!
    perl -i -pe 's/.//g' filename

    but i think the best way of doing this should be pileofrogs's idea.


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    "one who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever."

    mk at rio dot pm dot org
Re^2: Cleaning file
by ysth (Canon) on Aug 21, 2006 at 21:28 UTC
    That's a pretty odd substitution. Anyway, -i~ will rename the file, which the OP didn't want.