Created
March 10, 2021 00:24
-
-
Save woodRock/79c3c77a85fbf3b1e403dd46c0fb6a4d to your computer and use it in GitHub Desktop.
Print a file nicely using this bashscript.
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
echo -e "\n------------\nBEGIN FILE:\n------------\n" | |
cat "${FULL_PATH}" # Print the file to the terminal (nicely). | |
echo -e "\n------------\nEnd FILE:\n------------\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment