The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
replacing with `pwd`
.
User Name
Remember Me?
Password
google site
Forums
Register
Blog
Man Pages
Forum Rules
Links
Albums
FAQ
Users
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
replacing with `pwd`
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
04-09-2004
Optimus_P
flim flam flamma jamma
Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
i thought you ment you already had in place of current_dir teh pwd command.
didnt know you were trying to sub it on the fly.
dont use the forward slash in your
sed
command choose another metachar like pipe.
ie:
sed
"s|current_dir|`pwd`|" <filename>
that works on my sys
Optimus_P
View Public Profile
Find all posts by Optimus_P