The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-25-2008
ski ski is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 13
Smile Combine fields and eliminate white space

Good Morning,
Newbie here. Could someone help with shell scripting that will enable me to combine 2 fields into one eliminating the white space. The fields are fixed but the data of course varies.
For example:
First Name: "George " 20 positions"
Last Name: "Washington " 30 positions"

I need to create one field with First and Last Name eliminating the space after George into a fixed field length of 50.

Result:
Name: "George Washington "

Appreciate any help.
Thanks.