rm -f always interactive

hi,
i am trying to remove files under 4.23a and I always get prompted with " rm:
remove jnk.txt? (y/N)". I am using the command rm -f, but I am still
getting promted. I have a bunch of files to remove and I can’t type (y)
for all of them. Can someone please tell me how to get rm not to prompt.

thanks

doron <doron@cfi.ucsb.edu> wrote:

hi,
i am trying to remove files under 4.23a and I always get prompted with " rm:
remove jnk.txt? (y/N)". I am using the command rm -f, but I am still
getting promted. I have a bunch of files to remove and I can’t type (y)
for all of them. Can someone please tell me how to get rm not to prompt.

try
/bin/rm -f files

thanks

doron wrote:

hi,
i am trying to remove files under 4.23a and I always get prompted with " rm:
remove jnk.txt? (y/N)". I am using the command rm -f, but I am still
getting promted. I have a bunch of files to remove and I can’t type (y)
for all of them. Can someone please tell me how to get rm not to prompt.

thanks

I suppose you have setup an alias rm=‘rm -i’ in your .profile.

‘use rm’ says that ‘rm -if’ will require confirmation if POSIX_STRICT
environment is not set.

Try adding ‘export POSIX_STRICT=’ in you .profile (or .kshrc)

/------------------------------------------------------------

  • Davide Ancri - Prisma Engineering
  • & email = davidea at prisma dash eng dot it
    ------------------------------------------------------------/