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
#!/usr/bin/env bash | |
filepath="$HOME/Desktop/" | |
filename="mysecondnewfile.txt" | |
function dothething() { | |
echo "--------------------------------------------------------" | |
echo " I'm an echo. Enjoy your new file - now with content! " | |
echo "This is my test file." > "${filepath}${filename}" | |
echo "--------------------------------------------------------" | |
echo | |
} | |
# call our function | |
# ---------------------------------------------------------------------- | |
dothething |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment