Search Results

Search: Posts Made By: neeto
2,370
Posted By neeto
Thanks.. I have another question .. I am trying...
Thanks..
I have another question .. I am trying to assign this value to another variable:
${fetched_value} contains the string with \n

So following prints the value correctly
echo -e ...
2,370
Posted By neeto
ksh93 newline character problem
Hi ,
I am working on Linux, with ksh93 installed.

The following statement
echo \\n

just prints

\n on this shell.

However on pdksh
echo \\n gives a blank new line as a output.
...
3,378
Posted By neeto
How to update copyright header on a folder
Hi,
I have multiple shell scripts in diffrent folders on server.


Most of them contain copyright information like on the third line


* Copyright © 2004, 2005, My Inc. All rights reserved.
...
3,369
Posted By neeto
How to find .dat file in symbolic link
Hi,
I am trying to find all files in a directory that have .dat and .int extensions and removing them.
rm -f `find ${MY_DIR} -type f -name '*.dat' -o -name '*.int'`


This works fine if $MY_DIR...
Forum: Programming 03-12-2009
11,333
Posted By neeto
Accessing environmet variable in xml file
Hi I have certain environmenet variables defined in .profile:

export DBNAME="mydb"
export DBHOST="devbox.us.abc.com"
export DBPORT="1111"
export PASSWORD="mypwd"
export MMUSER="myid"


I...
2,486
Posted By neeto
Hiding database connection strings from xml file
Hi ,
I have a configuration file with the following structure:
<CONFIG>
<DEFAULTS operator="oraread">
<PROPERTY name="hostname" value="myhostname"/>
<PROPERTY name="port" ...
4,244
Posted By neeto
How to create alias for a function
Hi,
In Unix (AIX/LINUX) how do we create a alias for a UNIX shell function?
Please help me with that.
Thanks!!
5,358
Posted By neeto
How to make parameters optional?
Hi,
I am trying to call a function inside a shell script. Is there a way in which I can make the parameters options in the call?
Please help me with this.
Thanks!!!
11,244
Posted By neeto
Then what should be the solution?
Then what should be the solution?
11,244
Posted By neeto
Converting a String variable into Integer
Hi,
I am passing a variable to a unix function.
However when I try to assign the value to another variable like
typeset -i I_CACHE_VAL=$2
Is this because of String to Integer conversion?

I...
2,232
Posted By neeto
No this _sqlplus funtion executes the function in...
No this _sqlplus funtion executes the function in the databease. I guess semicolon is required.
2,232
Posted By neeto
Problem with a function in a shell script
Hi,
I am trying to write a function in the shell script .
This function accepts two parameters. It is as following:

set_cache(i_SEQ_NAME,I_cache_size)
{
_sqlplus "BEGIN...
1,364
Posted By neeto
find command
how do i list all the files in a x folder recursively that contain the word "test"?

Any inputs on this will be helpful.

Thanks in advance!!
25,483
Posted By neeto
Find command - First file only
How can I use the find command to list only first file that matches the name

for example

dir/dir1/file1
dir/dir2/file1
dir/dir3/dir4/file1

find dir -name file1

I just want to print
...
35,710
Posted By neeto
echo Java version
Hi
When I say java -version, the following text is printed
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build...
1,971
Posted By neeto
That works !! Thanks
That works !! Thanks
1,971
Posted By neeto
thanks for the reply.. extending this, how can...
thanks for the reply..
extending this, how can i print the orawrite database?
1,971
Posted By neeto
Grep/awk
Hi,
I have a config file defined like this
<DEFAULTS operator="oraread">
<PROPERTY name="arraysize" value="2000" />
<PROPERTY name="hostname" value="abc56"/>
<PROPERTY...
2
1,280
Posted By neeto
Grep
Supoose I have a variable defined like following on profile

ABC_HOME=/vol.nas/H70/xyz/160/aix56/abc-13.0

How do I print the following on Unix

"The version is 13.0"

I am extracting the...
2,719
Posted By neeto
echo is fine.. But how can this be made...
echo is fine.. But how can this be made reusable.. So that any user can invoke it from his .profile
2,719
Posted By neeto
printing parameters from .profile
Hi,
I have defined a few parameters in .profile. Here is how it looks like..

export ABC_HOME=/vol.nas/b20/abc/13.0/nm53/abc-13.0
export RFX_TMP=/vol.def/u50/abc/13.0/nm456/abc-13.0/tmp
export...
4,367
Posted By neeto
Thanks era, Do you have any links for that? ...
Thanks era,
Do you have any links for that?

Thanks,
4,367
Posted By neeto
return ${1-0}
Hi,
What does the above command means?

this is used in the following function

function _set_return_code
{
return ${1-0}
}
13,292
Posted By neeto
if [[ "$(uname)" = "SunOS" ]]
What does the following script do?

if [[ "$(uname)" = "SunOS" ]] ; then
PATH="/usr/xpg4/bin:${PATH}"
if [[ -x /usr/ucb/expr ]] ; then
alias expr="/usr/ucb/expr"
fi
fi
13,616
Posted By neeto
Do you have any example of such script? :)
Do you have any example of such script?
:)
Showing results 1 to 25 of 30

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