The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to insert some constant text at beginig of each line within a text file.
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How to insert some constant text at beginig of each line within a text file.
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
10-30-2008
summer_cherry
Registered User
Join Date: Jun 2007
Location: Beijing China
Posts: 1,088
Code:
sed
's/^/BBC_/' file
summer_cherry
View Public Profile
Find all posts by summer_cherry
Find summer_cherry's past nominations received
Find summer_cherry's present nominations given