Design engineer interview questions shared by candidates
Unexpected question: write a script to perform pattern matching with certain keywords for each line in a file.
use `sed` command to perform the pattern matching for each line, and a bash script wrapping around to parse the file. It is fairly easy, but for people who is not familiar to scripting language, sed, awk...etc, it may be a trouble.
you can also use perl regular expressions