Skip to content

Commit

Permalink
Change the example with the "useless use of echo" and backticks to si…
Browse files Browse the repository at this point in the history
…milar

Signed-off-by: Страхиња Радић <contact@strahinja.org>
  • Loading branch information
Strahinja committed Jan 20, 2022
1 parent d35f949 commit 23f61f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explainshell/web/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h3>examples</h3>
<ul>
{{ macros.examplebullet(":(){ :|:& };:") }}
{{ macros.examplebullet("for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l 2>/dev/null; done") }}
{{ macros.examplebullet('file=$(echo `basename "$file"`)') }}
{{ macros.examplebullet('name=$(printf "%s@%s" "$(id -nu)" "$(uname -n)")') }}
{{ macros.examplebullet("true && { echo success; } || { echo failed; }") }}
{{ macros.examplebullet("cut -d ' ' -f 1 /var/log/apache2/access_logs | uniq -c | sort -n") }}
{{ macros.examplebullet('tar zcf - some-dir | ssh some-server "cd /; tar xvzf -"') }}
Expand Down

0 comments on commit 23f61f7

Please sign in to comment.