Search Results

Search: Posts Made By: linuxnewbe
6,549
Posted By linuxnewbe
Thank you for your prompt reply :) and it helps...
Thank you for your prompt reply :) and it helps me to proceed further. But still I am missing some thing.

Output of the command " sed "s%$(head -1 file1.txt)%#\!$(which ruby)%g" file1.txt " is...
6,549
Posted By linuxnewbe
Relacing the shebang line of a file
Can any one tell me how to replace a shebang line of a file using sed?

Eg: If a file contains the following shebang line

#!C:/InstantRails/ruby/bin/ruby

I would like to replace it with
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy