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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 07-27-2007
bsandeep_80 bsandeep_80 is offline
Registered User
 

Join Date: Jul 2007
Posts: 103
Thanks for the help, I tried this and it worked:

strline=`head -1 $ccfile | cut -c1-10`
if [ "$strline" = "$sandeep_TXT" ]



and exported sandeep_TXT in in the script:

sandeep_TXT="ID"; export sandeep_TXT


Thanks again for ur help

Last edited by bsandeep_80; 07-27-2007 at 11:27 AM.. Reason: change
Reply With Quote