Skip to content

Instantly share code, notes, and snippets.

@codcodog
Created April 14, 2020 05:47
Show Gist options
  • Save codcodog/05bc3b6689bf03d11bf6a017176a14ec to your computer and use it in GitHub Desktop.
Save codcodog/05bc3b6689bf03d11bf6a017176a14ec to your computer and use it in GitHub Desktop.
1024 取模脚本
#!/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