Search Results

Search: Posts Made By: dixitked
1,820
Posted By dixitked
while replacing the pattern last line is last
I am using sed command to replace the pattern, i am replacing value of variable x with value of nw for a file temp2.

/usr/bin/sed 's|'$x'|'$nw'|' temp2 > $file

After running it my last line is...
11,182
Posted By dixitked
want to replace some words with other from a list
I have a list file, in which both the words to be replaced and to be replaced with are there... need to run a script which will accept the list name and replace all the occurances ..
ex. the list...
Showing results 1 to 2 of 2

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