Home » Infrastructure » Unix » How to assign each line to a variable
How to assign each line to a variable [message #256754] Mon, 06 August 2007 09:12 Go to next message
rajini25
Messages: 2
Registered: August 2007
Location: Bangalore
Junior Member
i have a file file.sh with two lines. each line can be of too large size.

file.sh contains
a,b,c,d,f,g,

r,t,y,h,u,h,

Now i want the output as
var1=a,b,c,d,f,g,
var2=r,t,y,h,u,h,

how will i get it?
Re: How to assign each line to a variable [message #256758 is a reply to message #256754] Mon, 06 August 2007 09:23 Go to previous messageGo to next message
BlackSwan
Messages: 23056
Registered: January 2009
Senior Member
What does your question have to do with PL/SQL?
What does your question have to do with Oracle?
Re: How to assign each line to a variable [message #256767 is a reply to message #256754] Mon, 06 August 2007 10:03 Go to previous message
Michel Cadot
Messages: 59791
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
trim lines: sed -e 's/ *$//'

Regards
Michel
Previous Topic: 10g upgrade roadblock on hpux V11.11
Next Topic: oracle 9.2 Installation Error On HP-UX B.11.11
Goto Forum:
  


Current Time: Wed Nov 26 12:57:55 CST 2014

Total time taken to generate the page: 0.10221 seconds