Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Explore
Projects
Groups
CI/CD Catalog
Topics
Snippets
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Explore
Snippets
$22
Get number of characters in a SHA1 hash in bash
Code
Clone with SSH
Clone with HTTPS
Embed
Share
Snippet actions
The snippet can be accessed without any authentication.
Authored
2 years ago
by
Leon Schmidt
Edited
2 years ago
do.sh
60 B
1
2
3
#!/bin/bash
echo
-n
"BALL"
|
sha1sum
|
tr
-d
'\n -'
|
wc
-c
0
0
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment