Search Results

Search: Posts Made By: Ugenther
2,126
Posted By Ugenther
#sed '0,/abc/{s/abc/checker/}' test>test1 ...
#sed '0,/abc/{s/abc/checker/}' test>test1

sed: command garbled: 0,/abc/{s/abc/checker/}




Am I mentioning the address incorrectly??
What can be the address for "abc" in the file test....
2,126
Posted By Ugenther
sed not working as I expected. What can be the possible reason?
# cat test
<abc>
</abc>
<abc>

</abc>
# sed 's/abc/checker/' test>test1
# cat test1
<checker>
</checker>
<checker>
</checker>
#

I want the first instance of abc to be changed to...
Showing results 1 to 2 of 2

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