Search Results

Search: Posts Made By: findprakash
4,064
Posted By findprakash
Thanks for your help.
Thanks for your help.
4,064
Posted By findprakash
Function not found message
I have shell script as below:

#!/bin/ksh
#set -xv

function set_variable
{
VARIABLE_NAME=$1
CURRENT_PATH=`pwd`
if [ ! -f $CURRENT_PATH/common/common_scripts/configuration_file.lst ]; then
...
1,467
Posted By findprakash
Need help with Shell Script
Hi,
I have file abc.txt and when I run below command from command line I get expected result.

cat abc.txt | grep s_frmWalletDir | awk -F">" {'print $2'} | awk -F"<" {'print $1'}...
1,894
Posted By findprakash
geekosaur thanks for solution and explanation. It...
geekosaur thanks for solution and explanation. It works!!!!.
1,894
Posted By findprakash
flakblas thanks for the update. However command...
flakblas thanks for the update. However command does not work. I think # will not work instead of / for sed.
1,894
Posted By findprakash
Need help with sed
I have a file abc.txt as below.
$ more abc.txt
<chronosURL oa_var="s_chronosURL">http://acme.abc.com:80/oracle_smp_chronos/oracle_smp_chronos_sdk.gif</chronosURL>
$

I am getting error when I...
8,612
Posted By findprakash
Franklin52 it works!!!!! Thanks for your help.
Franklin52 it works!!!!! Thanks for your help.
8,612
Posted By findprakash
Thanks for reply Franklin52 and Yogesh Sawant. I...
Thanks for reply Franklin52 and Yogesh Sawant. I am not able to get whole command working since I am not able to pass value to suggested command through variable. Below command does not work.
...
8,612
Posted By findprakash
How to extract text from a line in file
I have a file abc.txt as below :

<dbport oa_var="s_dbport" oa_type="EXT_PORT" base="1521" step="1" range="-1" label="Database Port">1616</dbport>
<rpc_port oa_var="s_rpcport" oa_type="PORT"...
Forum: Solaris 08-24-2008
6,066
Posted By findprakash
Thanks Era for elaborated explaination. Your...
Thanks Era for elaborated explaination. Your updates are always insightful and help me understand unix command better.
1,891
Posted By findprakash
Era, Thanks for your help. I am able to get...
Era,
Thanks for your help. I am able to get output as desired.
8,776
Posted By findprakash
Backslash in find command
When I run my script in debug mode I see that \ is not getting executed as part of command. It is being treated as escape character.

find ${DATABASE_PARAM_PATH} -mtime +${RETENTION_PERIOD} -exec...
Forum: Solaris 08-24-2008
6,066
Posted By findprakash
When I run my script in debug mode I see that \...
When I run my script in debug mode I see that \ is not getting executed as part of command. It is being treated as escape character.

find ${DATABASE_PARAM_PATH} -mtime +${RETENTION_PERIOD} -exec...
1,891
Posted By findprakash
Era, Thanks for the update. Your observation...
Era,
Thanks for the update. Your observation is absolutely correct. I removed first few colums of ls -ltr output as they are not needed in my script. When I run command provided by you I do not...
1,891
Posted By findprakash
Awk help needed..
I have to add number in column 1 by month.

1531 Feb 1 2007 pgaps_p007_27909.trc
1529 Feb 1 2007 pgaps_p006_27907.trc
1533 Feb 1 2007 pgaps_p005_27905.trc
635 Apr 7 2007...
1,965
Posted By findprakash
Redirection not working as expected
Portion of my script below :

if [ ${TODAYDAY} = "Mon" ]; then
NUMBEROFFEILDS=`cat ${BASE_SCRIPT_LOC}/standardfilecleanup.lst|grep -w ${db_file_path}|awk -F: '{print NF}'`
COUNT=4
while...
2,496
Posted By findprakash
Crystal after changing command as below its...
Crystal after changing command as below its working as expected.

file_name=`cat standardfilecleanup.lst|awk -F: '{print '$var_value'}'`

Thanks for your valuable input.

Thanks,
Prakash
2,496
Posted By findprakash
Thanks Crystal. After making changes command is...
Thanks Crystal. After making changes command is working fine but not giving expected output. Output of script below.

# ./testfile
File NAme db:background_dump_dest:alert.log:test.log:rest:log
...
2,496
Posted By findprakash
Thanks for the update cystal. Below command is...
Thanks for the update cystal. Below command is erroring out.

file_name=`cat standardfilecleanup.lst | awk -F ":" 'print ${var_value}' `

awk -F: -> tells that : is feild separator.

I don't...
2,496
Posted By findprakash
My bad. While elaborating my problem I made...
My bad. While elaborating my problem I made change but did it at wrong place. while loop in script does not have any issue.

#set -xv

i=3

while [ $i -le 5 ]
do
var_value="$"`echo $i`...
2,496
Posted By findprakash
Script Help
I have file standardfilecleanup.lst which has contents as below :

db:background_dump_dest:alert.log:test.log:rest:log
db:user_dump_dest:best.log:test.log
db:core_dump_dest:test.log

Below is...
2,809
Posted By findprakash
Thanks for the update. However issue is not with...
Thanks for the update. However issue is not with awk command. Output of script below :

xxibeprakashs.jsp file extension does not conform to our standrads
xxibeprakashs.jsp should be copied to...
2,809
Posted By findprakash
If then else loop not working
If then else segment of below code is not working. For each filename code is displaying output for if part as well as else part. Please help its urgent.

for usercusttop in `echo...
1,322
Posted By findprakash
awk Help
Hi,
I am generating print column in awk using a while loop. I want to get
{'print `echo "$"$count`'}` in the code to be evaluated as below :

for nodecount =4 {'print `echo "$"$count`'}`...
23,533
Posted By findprakash
Thnx Kahuna. Its works.
Thnx Kahuna. Its works.
Showing results 1 to 25 of 33

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