Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Count-in-octal/UNIX-Shell/count-in-octal-1.sh
Normal file
6
Task/Count-in-octal/UNIX-Shell/count-in-octal-1.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
num=0
|
||||
while true; do
|
||||
echo $num
|
||||
num=`echo "obase=8;ibase=8;$num+1"|bc`
|
||||
done
|
||||
6
Task/Count-in-octal/UNIX-Shell/count-in-octal-2.sh
Normal file
6
Task/Count-in-octal/UNIX-Shell/count-in-octal-2.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
num=0
|
||||
while test 0 -le $num; do
|
||||
printf '%o\n' $num
|
||||
num=`expr $num + 1`
|
||||
done
|
||||
5
Task/Count-in-octal/UNIX-Shell/count-in-octal-3.sh
Normal file
5
Task/Count-in-octal/UNIX-Shell/count-in-octal-3.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
num=0
|
||||
while test 0 -le $num; do
|
||||
printf '%o\n' $num
|
||||
num=$((num + 1))
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue