diff --git a/hosts b/hosts index 893f05b..ebc8d19 100755 --- a/hosts +++ b/hosts @@ -685,10 +685,17 @@ add() { "${ip}" \ "${hostname}" \ "${formatted_comment}" >> "${HOSTS_PATH}" + printf "Added:\n%s\t%s\t# %s\n" \ + "${ip}" \ + "${hostname}" \ + "${formatted_comment}" else printf "%s\t%s\n" \ "${ip}" \ "${hostname}" >> "${HOSTS_PATH}" + printf "Added:\n%s\t%s\n" \ + "${ip}" \ + "${hostname}" fi fi }