Linux Shell Script Tutorial the Echo Command

preview_player
Показать описание

This video was sponsored by:
Karl Arvid
Steven C. Morreale

Рекомендации по теме
Комментарии
Автор

+Kris Occhipinti: You can't escape a single quote (') within a single-quoted string literal in Bash. For example, this will *not* work as expected:

$ echo 'I said \'hello\' to him.'

Frustrating, I know. To alleviate this, I usually use adjacent quote pairs in my scripts.

abczyx
Автор

Can someone please tell me what is the meaning of echo -e?

sharanyahegde
Автор

I believe this will work:
% echo 'he said, '''"It's a good day"''''
I used the triple single quotes. Tried 10 to 15 times before i got it right.

alexgonzo