The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Capture carriage return.
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Capture carriage return.
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
12-15-2003
jayakhanna
Registered User
Join Date: Dec 2003
Location: India
Posts: 50
You can try this way also if you want as a single command to be executed one at a time
# export VAR="adafadfadf"
# export LENGTH=`expr "$VAR" : '.*'`
# echo $LENGTH
10
# export VAR=""
# export LENGTH=`expr "$VAR" : '.*'`
# echo $LENGTH
0
#
Regards
jayakhanna
View Public Profile
Find all posts by jayakhanna
Find jayakhanna's past nominations received
Find jayakhanna's present nominations given