The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-12-2009
corbusier corbusier is offline
Registered User
  
 

Join Date: Mar 2009
Location: Région Lac Léman
Posts: 3
Modifying a .ksh file

Hi,

i have created a simple .ksh file in the following manner

Code:
cat <<EOF >mfile
#!/bin/ksh
echo "hello world"
EOF
I have 2 questions

1. now i would like to add a second line after the first echo command
e.g. echo "this is line 2"

how can i do that ?

2. I would then like to delete the first line
Code:
echo "hello world"
how can i perform this operation.

Thanks in advance,
C

Last edited by Yogesh Sawant; 03-31-2009 at 02:45 PM.. Reason: added code tags