The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How do I insert a line in the middle of a file in BASH?
.
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 do I insert a line in the middle of a file in BASH?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
10-09-2008
phenom
Registered User
Join Date: Oct 2008
Posts: 3
I have a $(whoami) in the line to be inserted and
sed
'6a\
text_to_insert
'
is not recognizing it. it inserts $(whoami) instead of the username
any ideas??
phenom
View Public Profile
Find all posts by phenom
Find phenom's past nominations received
Find phenom's present nominations given