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 -->
  #1 (permalink)  
Old 12-15-2003
gio123bg gio123bg is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 15
Angry Capture carriage return.

I try to test the carriage return in a variable.
$ LENGTH=`expr $VARIABLE : ".*"` will return the length of the variable. But this doesn't work if $VARIABLE has zero length.

Any help will be well appreciated.
Thanks in advance.

Giovanni