Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8456057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:26:56+00:00 2026-06-10T12:26:56+00:00

I have value as: james,adam,john I am trying to make it James,Adam,John (First character

  • 0

I have value as:
james,adam,john
I am trying to make it James,Adam,John(First character of each name should be Uppercase)

According to kev(below),

$ echo ‘james,adam,john’ | sed ‘s/\<./\u&/g’
James,Adam,John(It is not working in all the systems)

I am not able to do the same thing in different system.I am using .ksh, but I don’t know whether its because of ksh or different system. Can anyone help?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:26:57+00:00Added an answer on June 10, 2026 at 12:26 pm

    You can use sed:

    $ echo 'james,adam,john' | sed 's/\<./\u&/g'
    James,Adam,John
    
    • pattern \<. will match first char of every word
    • use \u& to make it uppercase.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have this XML file: <Names> <Name> <FirstName>John</FirstName> <LastName>Smith</LastName> </Name> <Name> <FirstName>James</FirstName>
I have a name=value type string that looks like... {user type=active name=james green id=45
Let's say I have the following table first last value tony jones 1 james
I have a json data in this format. ({test:[test, &lt;br/&gt;&lt;div&gt;&lt;b&gt;Name&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; James;/div&gt;&lt;div&gt;&lt;b&gt;Company&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Company1&lt;/div&gt;&lt;div&gt;&lt;b&gt;Phone.....}). I need to
For the given HTML I want the value of id <div class=name id=john-5745844> <div
I have a <textfield> ( $_POST['list'] ). How can I get value of each
i have value in php variable like that $var='2.500000550'; echo $var what i want
I have a question, I have value as below which I set in an
I have a value of Android accelerometer x axis, and on every 0.18 change
I have a value int called score and i want to save this to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.