echo
Jump to navigation
Jump to search
Contents
Examples[edit]
echo -e '\a'
Do not output the trailing newline
echo -n
Truncate a file
echo "" > filename
Print a new line after command output:
kubectl get secret mykubedashboard-kubernetes-dashboard-token-8wfsh -o jsonpath="{.data.token}" | base64 --decode; echo
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]
printfBash built-intput:tput bel- Format string attack
loggerappend- Ansible print and debug examples
truncate- Echo go web framework
See also[edit]
echo,print, printf,tput,logger,write-output, echo -e, /dev/stdout, bannerprint, strcat, echoBash [ -c ],alias,&&, Bash history, Autocompletion,set,unset,export,.bash_aliases, .bashrc and .bash profile,PS1,echo,brace expansion, Function,shopt,trap,set -e,source,PATH,complete,disown,.hushlogin,.bashrc,builtin,eval,set,$PATH,$HOME,TZ,.profile,-e, -i,Builtin (Bash),mapfile,~, return (Bash), for, until,declare, dirname, basename, functions.sh, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@, Bash versions, Backslash \
Advertising: