Search Results

Search: Posts Made By: thuldai2
2,224
Posted By thuldai2
I like to do something like this sed...
I like to do something like this

sed 's/phrase/substitute/' ${file} > ${file}.TMP && /bin/mv -f ${file}.TMP ${file}
The '&&' makes the second part (mv -f) only execute when the first part worked...
Showing results 1 to 1 of 1

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