Microsoft
Software
Hardware
Network
Question : Adding value to be part of file name
I have a text file say yrmnth.txt that contains value 201001 .
I'm able to echo the value from the txt File using the below command in solaris
var=`cat /appl/oas/apps/amrl/mnthen
d/yrmnth.t
xt`
echo $var -- Displays 201001
Now i want this value to be part of my file name
as RL_201001_RLMTR01.LIS
i tried both RL_$var_RLMTR01.LIS as well as RL_`$var`_RLMTR01.LIS and ws unable to get the desired output.
Calling the Below command in shell script [where $ variables are enviroment variables where paths are defined in another shell script]
$oradev_bin/rwclient.sh server=$oracle_repsrv module=$source_path/RLVHR4
6A.RDF userid=$oradev_user p_repid='RLVHR46A' p_compcd=4 p1=1 destype=file desformat=WIDE desname=$spool_path/RL_$va
r_RLVHR46A
.LIS CMDFILE=$source_path/ACYM.
CMD
Thanking You
Answer : Adding value to be part of file name
You need to use braces around the variable to disambiguate it, ie:
desname=$spool_path/RL_${v
ar}_RLVHR4
6A.LIS
Random Solutions
Cold fusion & SQL CFIF "if variable not present, alt query" problem
HP z200 Workstation Windows 2008 R2 'PCI serial port' driver and 'PCI Simple Communications controller' driver needed
How do I register Exchange 2010 with Windows Server Backup on Windows Server 2008 R2
acronis disk director server 10
permissions to be able to script objects
In a excel document is there a way to view two sheets at the same time (i.e. side by side).
When I ping 192.168.1.4 I get reply from 192.168.1.127
importing another ACT DB
SBS 2008 Small Business Server Internet Activity
Cannot Create a Fax Account in Windows 7