Search Results

Search: Posts Made By: SSSB
3,009
Posted By SSSB
Thank you for the quick reply.
It works great, but i am still wondering if some one could help me out in using the getopts command.
3,009
Posted By SSSB
Need help with parsing the arguments using getopts !!
Hi all,
I am trying to use long arguments for my existing script. right now my script would work if given <script_name> -t <arg1> -b <arg2> -v <arg3>. The script code is shown below.

while...
3,043
Posted By SSSB
Need help with setting up environment variables
hi all,
I would appreciate if some one could explain me the difference between setting up the variables as shown below


HOME=${HOME:-"/home/user1"}

HOME=/home/user1
4,469
Posted By SSSB
CMD="/global/site/............/cs/config.cfa-V7CDS...
CMD="/global/site/............/cs/config.cfa-V7CDS1CA1"
newCMD=$(echo $CMD | awk -F/bin '{print $1}')
o/p


echo $newCMD
/global/site/vendor/Vignette7/Content/7_5/java5/jre
3,546
Posted By SSSB
Thanks Y'ALL . Its working perfect!! :)
Thanks Y'ALL . Its working perfect!! :)
3,546
Posted By SSSB
The code worked but i have another issue when i...
The code worked but i have another issue when i am trying to insert a variables clus_name_format,PROP_FILE_LOC listed below
clus_name_format=${clus_name_format:-"Cluster=test_node1@test_clus_mem1"}...
3,546
Posted By SSSB
@scottn The have tried the command nawk and it...
@scottn
The have tried the command nawk and it prints the property file but it doesnot write it (inserting a new line ) to the property file !! Below is what i have been trying .

nawk '1;...
3,546
Posted By SSSB
@Scrutinizer When i tried the second solution...
@Scrutinizer
When i tried the second solution and the result was the same
sed: command garbled:...
3,546
Posted By SSSB
I have tried entering in a different line but i...
I have tried entering in a different line but i get the error below .
sed: command garbled: /^#Cluster=/a Cluster=test_cluster:test_node@test_cluster_mem1,test_node2@test_cluster_memIs there...
3,546
Posted By SSSB
Alternate work out for sed command
Iam trying to insert a line after #Cluster in the property file shown below
#Node=Nodehostname:NodeProfilename
Node=testNode:test_profile...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 08:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy