in reply to Inplace editing, dos one liner, without a backup file?

maybe a silly question but, is there anything disallowing you to remove the backup files after editing them with the one-liner? del *.bak?

And btw, to select all files under MS-DOS you have to use the *.* pattern.

Replies are listed 'Best First'.
Re^2: Inplace editing, one liner, without a backup file?
by tphyahoo (Vicar) on Aug 09, 2005 at 12:53 UTC
    Actually I'm removing them in subversion, on commit, with the pretty tortoisesvn gui interface. (I select all the .bak files and delete).

    I couldn't get the pie trick to work from dos with or without the *.*. Am I doing something wrong? (See my reply to fletch.)

      Unlike the shells found on most Unix-like operating systems - the Windows command prompt ( and the MS-DOS command.com before it) does not expand the "wildcard" parameters before passing them as arguments to a program - it is left to the program itself to do that.

      /J\

        them, adding something like
        BEGIN { @ARGV = map { glob $_ } @ARGV }
        to the one liner should do the trick.