oracle - SQL Plus/Shell Script: Extra newline printed -


below variable , value being fetched query.

subsno=`sqlplus -s user/pass@db << eol set heading off; set feedback off;  select cfr_subscriber_no csm_future_request cfr_ban = 111111111 , cfr_status = 'e' , cfr_subscriber_no<>0000000000;  eol` 

but when printing variable being printed newline first. , ${#subsno} printing (length+1), i.e, including new line character.

is there option stop new line being printed ? have check table, has proper data.

maybe it's

set newpage none 

(the number of blank lines between top of each page , top title).


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -