The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Inserting a column in a file
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Inserting a column in a file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
05-10-2008
dhanamurthy
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
Remove advertisements
Forum Sponsor
dhanamurthy
View Public Profile
Find all posts by dhanamurthy