3.1 of 5 149 reviews Houston, TX 500 to 999 Employees Linux Systems Administrator I Interview Question

I interviewed in Austin, TX and was asked:
"How do you change a list of words in a file from slug format to Capitalized words? (ie police_officer to Police Officer)"
Tags: technical, behavioral, linux, networking, interactive, wordpress, sed, grep   See more
Add Tags [?]
Answer Flag Question

Part of a Linux Systems Administrator I Interview Review - one of 57 Interview Reviews

Answers & Comments

of 0
sed -e 's/^./\U&/' -e 's/_./\U&/g' -e 's/_/ /g' /path/to/input
- Interview Candidate on Feb 6, 2013 Flag Response
of 0
|sed 's/\(^.\)\([a-z].*\)\(\_\)\(.\)\([a-z].*\)/\U\1\L\2 \U\4\L\5/'
- Gregg Leventhal on Apr 29, 2013 Flag Response

To comment on this question, Sign In with Facebook or Sign Up – Why Work for Us? LLC is a world-leading provider of shared, reseller, VPS and dedicated web hosting. Founded in 2002, HostGator has grown into an industry recognized hosting provider with over 15,000 servers currently… Full Overview

Provided by employer [?]

Tags are like keywords that help categorize interview questions that have something in common.

Glassdoor is your free inside look at interview questions and advice. All interview reviews posted anonymously by employees and interview candidates.