0

here is my code :

if [ -e vivado*.backup.log ]; then
    rm vivaod*.backup.log
fi

The output message is "[: too many arguments"

More curious, same code below can work perfectly:

if [ -e vivado*.backup.jou ]; then
     rm vivado*.backup.jou
fi

I tried many times and many solutions, but got same error. what should I do now ? thankyou ~

smh
  • 448
  • 4
  • 9
  • 2
    The `-e` operator takes a single argument but you are using a wildcard (`*`) which presumably expands into multiple filenames. That won't work. The working version probably matches only a single file. – larsks Aug 20 '17 at 12:45
  • Exactly it is. Thankyou very much. – smh Aug 21 '17 at 02:09

0 Answers0