A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Linux / UNIX
Adding a variable value to the text file
Joined: Jul 09, 2013
Jul 09, 2013 06:08:11
New to shell scripting.
I have a .txt file with values
My requirement is to pick a column value from database and add it to the .txt file values
Right now I am using
sed 's/"$l_shipment_number",/' <file_name>
where l_shipment_number=`sqlplus -s $FCP_LOGIN <<!!
SET head off
SET feed off
SET term off
SELECT DISTINCT shipment_number
WHERE processed_file_name = <>
Now, I am not getting the value as needed in such a case.
Can you please let me know what the issue here is ?
Ivan Jozsef Balazs
Joined: May 22, 2012
Jul 18, 2013 10:35:24
The sed program seems broken?: there is no closing /
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Adding a variable value to the text file
Need help with a SQL statement
Regular expression - capture groups
How to refresh a StringBuffer object for creating a HashMap object
private v.s public final
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014