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



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
string operation arghya_owen Shell Programming and Scripting 1 06-11-2008 07:11 AM
string operation arghya_owen Shell Programming and Scripting 1 06-11-2008 06:30 AM
cat operation trichyselva UNIX for Dummies Questions & Answers 0 03-24-2008 06:55 AM
string operation fongthai Shell Programming and Scripting 6 11-24-2006 06:26 AM
AIX 4.3 Openssh 3.7.1.0 Operation ripley AIX 2 03-07-2005 01:56 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-08-2009
orjnet orjnet is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 3
string operation

I am trying to ask for full name in a script, Then echo back to the user with the surname only, omitting the first name.
Thanks
  #2 (permalink)  
Old 01-08-2009
pmm pmm is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 50
printf "Please enter Firstname Surname: "
read names
echo $names | awk ' { print "Your Surname is: " $NF } '
  #3 (permalink)  
Old 01-09-2009
orjnet orjnet is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 3
Thanks am grateful

it works perfectly, am grateful
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:21 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0