MARG wrote: > My .bash_profile is: > ---------------------- > # .bash_profile > > # Get the aliases and functions > if [ -f ~/.bashrc ]; then > . ~/.bashrc > fi > > # User specific environment and startup programs > > PATH=$PATH:$HOME/bin > > export PATH > unset USERNAME > ---------------------------- > > What i'd like to do is from the command prompt or a bash script, insert > text after the line "PATH=$PATH:$HOME/bin". sed -e '/^PATH=/a\some text' -- Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx> - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html