![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Separate string | arghya_owen | Shell Programming and Scripting | 3 | 05-14-2008 12:35 AM |
| Converting Binary decimal coded values to Ascii Values | gaur.deepti | UNIX for Advanced & Expert Users | 3 | 04-02-2008 09:33 AM |
| insert pipe in file to separate values | DebianJ | UNIX for Advanced & Expert Users | 5 | 03-20-2006 04:20 PM |
| separate out the column | ust | Shell Programming and Scripting | 6 | 12-29-2005 04:11 AM |
| How to separate a variable | whatisthis | Shell Programming and Scripting | 4 | 11-02-2004 10:49 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
to separate values from a string
Hi
I would like to take input from user like username/password@connectstring I should be able to cut the username and password and connect string for example if someone enters like sam/sammy@ora1 my program should take sam as username sammy as password and ora1 as connectstring and assign to different variables Thanks in advance |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
will this do??
Code:
read input?"enter value"
echo "$input"|awk -F\/ '{print $1$2}'
|
|
#3
|
||||
|
||||
|
Quote:
|
|
#4
|
|||
|
|||
|
Thanks so much for your answers
|
|||
| Google The UNIX and Linux Forums |