Search Results

Search: Posts Made By: rajavu
15,019
Posted By rajavu
Yes.. Thanx. It is working perfectly .. But...
Yes.. Thanx. It is working perfectly ..

But can you please tell me how its done ?

especially ?

what is the use of ^ ?
how its done without [0-9] ?

Raj.
15,019
Posted By rajavu
Nice suggestion zaxxon, thanx ( Good tip for the...
Nice suggestion zaxxon, thanx ( Good tip for the day)

But it is not giving me what i need .


[orcl10gdb@SVRDELLD41 flexiSchema]$ echo "abc" | rev
cba
[orcl10gdb@SVRDELLD41 flexiSchema]$ ...
15,019
Posted By rajavu
How to change the order of a string ?
Hi ,

I want to change the order of a string using sed command . Is it possible ?


[orcl10gdb@SVRDELLD41 flexiSchema]$echo "abc123xyz" | sed 's/\([a-z])*\) \([0-9]*\)/\2\1/'
abc123xyz...
7,724
Posted By rajavu
Yes.. for sure :) Raj.
Yes.. for sure :)

Raj.
16,363
Posted By rajavu
Might be something like this. ...
Might be something like this.


[orcl10gdb@SVRDELLD41 flexiSchema]$ ls -ltr *.txt
-rw-r--r-- 1 orcl10gdb dba 0 Jan 16 09:28 a.txt
-rw-r--r-- 1 orcl10gdb dba 0 Jan 16 09:30 a_1.txt
-rw-r--r-- ...
7,724
Posted By rajavu
Thanx Zaxxon , It worked finally as below. ...
Thanx Zaxxon ,

It worked finally as below.


[orcl10gdb@SVRDELLD41 flexiSchema]$ cat test1.ksh
#! /usr/bin/ksh
set -A arr1 "APPS_DEV" "TEST_DEV"
echo "...In Test1...."
arr1[0]="APPS_DEV"...
7,724
Posted By rajavu
Sorry Zaxxon for troubling you too much . I...
Sorry Zaxxon for troubling you too much .

I made one more change . Changed -a to -A on declaring array .
Now its working fine .


[orcl10gdb@SVRDELLD41 flexiSchema]$ cat test1.ksh
#!...
7,724
Posted By rajavu
Even I am stuck with the issue .. btw there...
Even I am stuck with the issue ..

btw there was one # before declaring array2 in test2.ksh .
I removed it ... and issue remain the same .


[orcl10gdb@SVRDELLD41 flexiSchema]$ cat test1.ksh...
7,724
Posted By rajavu
Now I change the permission and I tried to...
Now I change the permission and I tried to execute withou sh /ksh as below .

But results in the same problem


[orcl10gdb@SVRDELLD41 flexiSchema]$ cat test1.ksh
#! /usr/bin/ksh
set -a arr1...
7,724
Posted By rajavu
Now I changed to ksh and tried as follows. ...
Now I changed to ksh and tried as follows.


[orcl10gdb@SVRDELLD41 flexiSchema]$ cat test1.ksh
#! /usr/bin/ksh
set -a arr1
echo "...In Test1...."
arr1[0]="APPS_DEV"
arr1[1]="TEST_DEV"
echo...
7,724
Posted By rajavu
Thanx Zaxxon for the suggestion . But still...
Thanx Zaxxon for the suggestion .

But still It gives the same problem as below


[orcl10gdb@SVRDELLD41 flexiSchema]$ cat test1.sh
#! /usr/bin/ksh
set -a arr1
echo "...In Test1...."...
7,724
Posted By rajavu
Even after removing the 'sh' its not working ....
Even after removing the 'sh' its not working . rather gives the error "test2.sh: command not found"

But it works well if we are passing single Array element as parameter like ${arr1[0]}.( with...
7,724
Posted By rajavu
How to pass array as an arguement ?
Hi experts,

I am here again with another Issue.
I need to pass the array as parameter / argument to another script.

I tried it as follows . ( I got this idea from the link...
4,033
Posted By rajavu
Thanks very much again for the lightening...
Thanks very much again for the lightening response .

Shell script sees to be interesting .
But still much difficult section AWK programming , though I am not pretty comfortable with normal shell...
4,033
Posted By rajavu
Ok .. If i understand it correctly , It is...
Ok .. If i understand it correctly ,

It is recommended always to use the variable with quotes especially during comparison to avoid such errors . Am I right ?

Thanx otheus again.

Learned...
4,033
Posted By rajavu
Thanks very much otheus , I got some new...
Thanks very much otheus ,


I got some new tips today especially points 2 and 4 . I almost incorporated your suggestion . Its fine now.


[orcl10gdb@SVRDELLD41 schema_opt]$ cat...
4,033
Posted By rajavu
Can we optimize this simple script ?
Hi All ,

I am just a new bie in Unix/Linux .

With help of tips from 'here and there' , I just created a simple script to

1. declare one array and some global variables
2. read the schema...
5,181
Posted By rajavu
Hi lakris, Thanx , its working fine . ...
Hi lakris,

Thanx , its working fine .

There were some non printable characters in between .

:)
Raj.
5,181
Posted By rajavu
How to get/print the lines from a specified file ? (LINUX)
It my first post here .

I just want to get the content of the file as values for printinting along with line number in LINUX

Here is what I tried .


[orcl10gdb@SVRDELLD37 scheme_opt]$ cat...
Showing results 1 to 19 of 19

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