Hello, On 09/01/2016 06:00 AM, Ed Avis wrote:
% touch a % rm a a rm: cannot remove 'a': No such file or directory
'rm -f' might do the trick (-f/--force : ignore nonexistent files and arguments, never prompt). $ touch a $ rm -f a a && echo ok ok However, remember '-f' also automatically assumes 'y' to all questions and never prompts (depending on your situation it might be acceptable or not). regards, - assaf