This is nothing special, you are better off using kate, gedit or vim.
Download it here
function -edit ()
read -p "What is the name of the file you would like to edit : " filename
read -p " Commands: Press enter to save file when done. Press enter now to start typing." enter ;
read -p " " text ;
echo $text >> $filename ;
echo "the file now looks like this :"
function filexist ()
if [[ -e $filename ]]
echo "file already exists, please choose another name. If you would like to edit " ;
read -p "this file, run $0 -edit . Please enter new filename : " filename ;
read -p "What would you like to call the file ? " filename
read -p " Commands: Press enter to save file when done. Press enter now to start typing." enter
read -p " " text
echo $text >> $filename
I made this script purely out of curiosity of what I could do with bash.