Pergunta de entrevista da empresa AMD

Unexpected question: write a script to perform pattern matching with certain keywords for each line in a file.

Respostas da entrevista

Sigiloso

22 de mai. de 2013

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.

1

Sigiloso

19 de jun. de 2013

you can also use perl regular expressions