Prompting for file deletion?

I got help in another forum but now I need further help so I figured I'd ask here. I had to write a script to delete certain filenames of certain size. I got this far..

find . -size 110c -name "*testing*" -print | xargs -n 1 rm -i

It finds the correct files, but the prompts to delete are all bunched up on one line. looks like:

rm: Remove ./file.testing.2007? rm: Remove ./file.testing2.2007(flashing prompt and when I enter y or n I get "ksh: y: not found")

Can someone show me how to individually prompt for file removal after it finds what I'm looking for in the directory?

The problem is stdin is being used to pipe the files and is also wanted for rm's confirmation, in your other thread I show you how to fix this by grabbing the tty name. :slight_smile:

Yes thanks, I replied there have a look :slight_smile:

Next programming question, I'll do it here.