Duedil Interview Question: How would you replace all occ... | Glassdoor.co.in

Interview Question

Site Reliability Engineer Interview London, England (UK)

How would you replace all occurances of the word 'apple

 ' with word 'orange' in a text file?
Answer

Interview Answer

1 Answer

0

sed-i `s/apple/orange/g file.txt

Interview Candidate on 05-Sep-2017

Add Answers or Comments

To comment on this, Sign In or Sign Up.