Created
April 14, 2020 05:47
-
-
Save codcodog/05bc3b6689bf03d11bf6a017176a14ec to your computer and use it in GitHub Desktop.
1024 取模脚本
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# 1024 取模脚本 | |
mod() { | |
x=$1 | |
y=1024 | |
z=$((x%y)) | |
echo $z | |
} | |
mod $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment