Concept Flow - sed substitution
Read input line
Match pattern?
No→Print line unchanged
Yes
Replace matched text
Print modified line
Repeat for next line
End
sed reads each line, checks if it matches the pattern, replaces matched text if yes, then prints the line.