#!/bin/bash clear printf " List of files\n" printf "============================\n" printf "file: .viminfo\n" printf "file: .vimrc\n" printf "Dir : .vim_runtime\n" printf "Dir : .vim_mru_files\n" printf "============================\n" printf "Copy all these files to /home/${USER}?: [y/n]" read answer if [ "${answer}" = "y" ];then cp -v -r {.viminfo,.vim_mru_files,.vimrc,.vim_runtime} ~ elif [ "${answer}" = "n" ];then exit 0; else printf "${0}: Invalid command, please enter 'y' or 'n'\n" fi