Last active
July 14, 2018 19:08
-
-
Save ulyssesr/676ee6a9b993653e3cc0030cafbe7d9d to your computer and use it in GitHub Desktop.
Read from a file. Assign content of file to a variable.
This file contains 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 | |
file="/data/buckets.txt" | |
count=$(cat "$file") | |
echo "There are $count buckets" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment