The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-10-2008
dhanamurthy dhanamurthy is offline
Read Only
 

Join Date: Jun 2006
Posts: 105
Inserting a column in a file

Hi
I have the following info in a file file1

ABCD
DSFD
sdfsd
YUISA

I want to add a column to the file file1 like the below.

STR ABCD
STR DSFD
STR sdfsd
STR YUISA

Is there any way in sed or awk to do it.

Regards
Dhana
Reply With Quote
Forum Sponsor