From mboxrd@z Thu Jan 1 00:00:00 1970 From: MARG Subject: Inserting text in a specific file in a specific point Date: Tue, 13 Dec 2005 20:53:54 +0000 Message-ID: <439F34E2.3050004@tuxdoit.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org Hi, 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". I've searched the web and tried a few tricks, but one worked :( Could you help me please ? Wam Regards, MARG