Interview Question

Service Engineer Interview



write a script to be able to expand this regular expression and print out the results host0[000-100] should return ...

AnswerAdd Tags

Interview Answers

4 Answers


for i in `echo host0{000..100}`; do echo $i; done

amit on


printf "\n" `seq 0 100`

Anonymous on


There's a lot of elements to typically cover in these questions, clarifications, scoping, making sure you're answering the actual question the interviewer is looking for you to answer, etc. Could be worth doing a mock interview with one of the Prepfully Yahoo Service Engineer experts... they've worked in the role so they clearly know how to get through the interview.

Anonymous on


should return ...

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.