sách gpt4 ăn đã đi

linux - 我不清楚一个重定向运算符,那就是 <<

In lại 作者:太空狗 更新时间:2023-10-29 12:12:15 24 4
mua khóa gpt4 giày nike

<<的用法我不清楚,谁能用一个简单的例子解释一下?真的很感激。

câu trả lời hay nhất

cat <<'EOF'
hello $$
I'm a here document that doesn't interpolate
any $-variables because of the qutoes around
the EOF marker
Cuối cùng

echo -------

cat <<>
hello $$
I'm a here document that does interpolate
Cuối cùng

echo -------

cat <<>
It doesn't matter what you use as the end of file marker
x

echo -------

cat <<'x'
Quotes prevent $-interpolation
x

Đầu ra:

hello $$
I'm a here document that doesn't interpolate
any $-variables because of the qutoes around
the EOF marker
-------
hello 29843
I'm a here document that does interpolate
-------
It doesn't matter what you use as the end of file marker
-------
Quotes prevent $-interpolation

关于linux - 我不清楚一个重定向运算符,那就是 <<,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38885511/

24 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress