The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
pasting text into an existing 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
:
pasting text into an existing file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
12-13-2001
Perderabo
Unix Daemon
Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,126
sed
's/^/display text (/;s/$/)/' < xxxxxx.txt
would probably be the easiest. But if you're intent on using a shell...
Code:
#! /usr/bin/ksh exec < xxxxxx.txt while read line ; do echo 'display text ('${line}')' done exit 0
Perderabo
View Public Profile
Find all posts by Perderabo
Find Perderabo's past nominations received
Find Perderabo's present nominations given