Skip to content

Instantly share code, notes, and snippets.

@vanntastic
Created September 28, 2010 16:32
Show Gist options
  • Save vanntastic/601316 to your computer and use it in GitHub Desktop.
Save vanntastic/601316 to your computer and use it in GitHub Desktop.
# abstract append text behavior into a function
append () {
if [[ -n "$1" ]]; then
echo $1 >> $2;
else
echo "USAGE : append 'your text' [file_to_append]";
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment