I would like to search for all the nohup.out in my mounted filesystems, and delete them.
There are some directories and files whose filenames contain space, so I think of
xargs -0.To be safe, I would like to interactively delete them, i.e. be asked if I really want to delete them. So I think of
rm -iandxargs -pI also would like to delete each found file seperately, so I think of
xargs -n 1.
But the following command doesn't work in the way I hope.
locate -i nohup.out | xargs -0 -n 1 -p rm -i
It doesn't prompt each file to be removed and ask for my permission.
I wonder why and what command works as I hope?
By the way my xargs version is xargs (GNU findutils) 4.4.2. Can it be the reason?