HostGator.com
3.1 of 5 149 reviews
Hostgator.com Houston, TX 500 to 999 Employees

HostGator.com 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 HostGator.com Interview Reviews

Answers & Comments

0
of 0
votes
sed -e 's/^./\U&/' -e 's/_./\U&/g' -e 's/_/ /g' /path/to/input
- Interview Candidate on Feb 6, 2013 Flag Response
0
of 0
votes
|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


HostGator.com – Why Work for Us?

HostGator.com 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 HostGator.com interview questions and advice. All interview reviews posted anonymously by HostGator.com employees and interview candidates.