We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
'Sed' command #1
'Sed' command #1
Sort by
recency
|
49 Discussions
|
Please Login in order to post a comment
while IFS= read -r line; do echo -e "$line" | sed "s/\bthe\b/this/ "; done
Objective In this challenge, we will practice using the sed command to parse and transform text.
Resources Sed is a popular tool that enables quick parsing and transformation of text.
Examples of sed in action: how to silved this problem
Substitute the first occurrence of 'editor' with 'tool':
Question asks to replace only the first occurance but the accepted answer replaces all instances of the word 'the'. Is this a mistake?