[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bash script



Am trying to automate some stuff for future installs.
I'd like to echo multiple lines to the end of a file. Like this

echo '. /etc/bash_completion' >> ~/.bashrc

But I'd like to add multiple lines at one time. Like the ones below. I realize I could cat them in from a text file, but I'd like to make this script non-dependant of other text files.

export LS_OPTIONS='--color=auto'
eval `dircolors`
alias ls='ls $LS_OPTIONS -F'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'

--
Highest Regards,

Rodney Richison
RCR Computing
http://www.rcrnet.net
118 N. Broadway
Cleveland, OK  74020
918-358-1111



Reply to: