Difference between revisions of "Echo"

From wikieduonline
Jump to navigation Jump to search
 
Line 10: Line 10:
 
Print a [[new line]] after command output:
 
Print a [[new line]] after command output:
 
* <code>[[kubectl get secret]] mykubedashboard-[[kubernetes-dashboard]]-token-8wfsh -o jsonpath="{.data.token}" | base64 --decode; echo</code>
 
* <code>[[kubectl get secret]] mykubedashboard-[[kubernetes-dashboard]]-token-8wfsh -o jsonpath="{.data.token}" | base64 --decode; echo</code>
 +
 +
== Errors ==
 +
gcloud --help | echo
 +
 +
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
 +
[[BrokenPipeError]]: [Errno 32] Broken pipe
  
 
== Related terms ==
 
== Related terms ==

Latest revision as of 10:15, 8 December 2023

echo Bash builtin

Examples[edit]

Do not output the trailing newline

  • echo -n

Truncate a file

Print a new line after command output:

Errors[edit]

gcloud --help | echo

Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe

Related terms[edit]

See also[edit]

Advertising: