Skip to content

Instantly share code, notes, and snippets.

@XIIIVI
Created June 12, 2020 12:41
Show Gist options
  • Save XIIIVI/dcff3636ceecacd3a2c2eb92447abcc3 to your computer and use it in GitHub Desktop.
Save XIIIVI/dcff3636ceecacd3a2c2eb92447abcc3 to your computer and use it in GitHub Desktop.
#
# display_file_content
# - param1: the file whose content will be displayed
#
display_file_content() {
local FILE_TO_CAT=${1}
echo -e "${YELLOW}__________________________________ ${FILE_TO_CAT} (Start) __________________________________${RESET_COLOR}"
cat ${FILE_TO_CAT}
echo -e "${YELLOW}__________________________________ ${FILE_TO_CAT} (End) __________________________________${RESET_COLOR}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment