読者です 読者をやめる 読者になる 読者になる

by shigemk2

当面は技術的なことしか書かない

Create PR and merged chrisallenlane/cheat

Linux

github.com

"cheat" command is a command to show cheatsheets for the command line just like tar, find, git and so on. But cheat does not have the cheatsheet for "for" command yet. So I add "for" plugin and create pull request on New Year's day.

Just execute this.

$ cheat for
# basic loop
for i in 1 2 3 4 5 6 7 8 9 10
do
  echo $i
done

# loop ls command results
for var in `ls -alF`
do
  echo $var
done

# loop specified number of times
for i in `seq 1 10`
do
  echo $i
done

I think this PR is along for the purpose for "cheat" command.