linux中如何通过echo输出!(叹号)? -bash: !": event not found
例如
#!/bin/bash
echo "hello world!"
会报错 -bash: !": event not found
但是!前后加上空格,就不会报错了
echo "hello world ! "
例如
#!/bin/bash
echo "hello world!"
会报错 -bash: !": event not found
但是!前后加上空格,就不会报错了
echo "hello world ! "