burim:bash:udemy:how_to_append_output_to_the_end_of_text_file_example
#! /bin/bash
echo -e "Enter the name of the file : \c"
read file_name
if [ -f $file_name ]
then
if [ -w $file_name ]
then
echo "Type some text data. To quit press ctrl+d."
cat >> $file_name
else
echo "The file do not have write permissions"
fi
else
echo "$file_name not exists"
fi
burim/bash/udemy/how_to_append_output_to_the_end_of_text_file_example.txt · Last modified: 2020/05/13 12:48 by burim
