All Questions
1 question
61
votes
7
answers
22k
views
How can I achieve portability with sed -i (in-place editing)?
I'm writing shell scripts for my server, which is a shared hosting running FreeBSD. I also want to be able to test them locally, on my PC running Linux. Hence, I'm trying to write them in a portable ...