Skip to content

Instantly share code, notes, and snippets.

@roktas
Created December 11, 2014 22:09
Show Gist options
  • Save roktas/5106bf111f78563ebc5a to your computer and use it in GitHub Desktop.
Save roktas/5106bf111f78563ebc5a to your computer and use it in GitHub Desktop.
#!/bin/bash
tolower() {
echo "$1" | tr A-Z a-z
}
varmi() {
if tolower "$1"; then
echo >&2 "'$1' mevcut"
return 0
else
echo >&2 "'$1' mevcut değil"
return 1
fi
}
main() {
varmi "$1"
}
main "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment