The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
String parse question
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
String parse question
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
03-06-2007
dennis.jacob
dj -------
Join Date: Feb 2007
Location: Cochin/Bangalore, India
Posts: 447
Assuming that the variable var contains the above data
echo $var | awk -F: '{print substr($2,1,2)" " $3;}'
dennis.jacob
View Public Profile
Find all posts by dennis.jacob