Daily Archives: November 27, 2018

bash exclamation (!)

在bash處理有帶!的字串要注意他本身有其他功用(history expansion),作為字串夾在double quote時 https://www.gnu.org/software/bash/manual/bashref.html#Double-Quotes Enclosing characters in double quotes (‘”’) preserves the literal value of all characters within the quotes, with the exception of ‘$’, ‘`’, ‘\’, and, when history expansion is enabled, ‘!’. 要注意的是escape !不可用 \ backslash\! 會是 \! … Continue reading

Posted in System Administration | Leave a comment