The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 04-10-2007
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,556
1)

Code:
# printf "abc@yahoo.com" |wc -c
13

2) another way,

Code:
# var=abc@#yahoo.com
# IFS="@#"
# echo $var
abc  yahoo.com
# set - $var
# echo $1
abc
# echo $3
yahoo.com