Search Results

Search: Posts Made By: veeresh_15
Forum: Linux 02-16-2020
9,046
Posted By Neo
Dear Veeresh, Not answering your question...
Dear Veeresh,

Not answering your question directly, but speaking honestly......

Swap space, especially on Linux systems in the year 2020 is a "relic of the past" (kind of like vacuum tubes...
3,666
Posted By RudiC
[^A-Za-z0-9_] replicates the "... non-word...
[^A-Za-z0-9_] replicates the "... non-word constituent character. Word- constituent characters are letters, digits, and the underscore" (cf man grep). This is ORed with begin-of-line ("^") or...
3,666
Posted By RudiC
man grep:So Corona688's proposal should be...
man grep:So Corona688's proposal should be slightly modified likeecho "ABC,123" | awk '$0 ~ "(^|[^A-Za-z0-9_])"P"($|[^A-Za-z0-9_])"' P="ABC"
ABC,123
---------- Post updated at 10:13 ----------...
3,666
Posted By balajesuri
Try perl: [user@host ~]$ cat file the...
Try perl:

[user@host ~]$ cat file
the hello world pattern
the pattern hello world
the line without that word
pattern the hello world
the patternhello world
the hellopattern world
the...
3,666
Posted By Corona688
Something like this perhaps: $ echo "ABC123"...
Something like this perhaps:

$ echo "ABC123" | awk '$0 ~ "(^|[ \r\n\t])"P"($|[ \r\n\t])"' P="ABC"
$ echo "123ABC123" | awk '$0 ~ "(^|[ \r\n\t])"P"($|[ \r\n\t])"' P="ABC"
$ echo "ABC 123" | awk...
26,768
Posted By Don Cragun
Hi veeresh_15, The "complete" script you...
Hi veeresh_15,
The "complete" script you provided shows us why you are having problems using getopts, but it doesn't explain what you're really trying to do. You have shown us four sample command...
26,768
Posted By Chubler_XL
How about using ":" between your -d args. $...
How about using ":" between your -d args.

$ ./test_db.ksh -d abc:11:dev -b 12
-b is for Non-default Block Size
BLOCK_SIZE=12
-d is Default option
ORACLE_SID=abc
ORACLE_VERSION=11...
4,420
Posted By MadeInGermany
So the work-arounds are 1. $SU -...
So the work-arounds are
1.
$SU - $lv_INSTANCE_OWNER -c /tmp/runtime_${sid}.ksh > /dev/null </dev/nullor
2.
while read sid <&3 # no $CAT $TMP_FILE1 |
do
...
done 3< $TMP_FILE1
3,092
Posted By Don Cragun
The variable OPTIND is set by getopts to indicate...
The variable OPTIND is set by getopts to indicate the next command line argument to be processed. (After the options and, if present, -- have been processed.) The command:
shift $((OPTIND - 1))...
2,587
Posted By Scrutinizer
A MR.Bean correctly notes it is because you use...
A MR.Bean correctly notes it is because you use also "abc" on the command line. So that will end up in the process table. If you would use:
ksh t.ksh ab[c]
then it should also work.
2,489
Posted By bartus11
Try:$ORACLE_HOME/OPatch/opatch lsinventory...
Try:$ORACLE_HOME/OPatch/opatch lsinventory -bugs_fixed | perl -p0e '$spaces=" " x 52;s/\n$spaces(\w)/ $1/g'
4,359
Posted By CarloM
On Linux you're most likely running mawk or GNU...
On Linux you're most likely running mawk or GNU awk, both of which will re-calculate $0 if you assign to a field (or change NF, although that might depend on the version).

Whatever HP-UX is using...
4,359
Posted By SriniShoo
Since you haven't changed anything to reconstruct...
Since you haven't changed anything to reconstruct the line, you get the output. Try $1 = $1
echo "/a/b/c/d/e/f/g/r/d/c/g" | awk -F '/' '{NF=6; $1=$1}1' OFS=/
4,359
Posted By RudiC
I don't know anything about HP-UX, but your awk-...
I don't know anything about HP-UX, but your awk- version might not like the NF assignment. Try
echo "/u01/app/oracle/product/11.2.0.3/bin/tnslsnr;LISTENER;-inherit"|awk -F'/' -vOFS=\/ '{print...
12,449
Posted By Chubler_XL
Can't help with the Red Hat Kernel version naming...
Can't help with the Red Hat Kernel version naming standard but this might help with this particular issue:

expected=2.6.32-279.el6.x86_64
received=$(uname -r)

exp_ver=${expected//\.el6.*/}...
6,561
Posted By bakunin
I can only emphasize what Don Cragun has already...
I can only emphasize what Don Cragun has already said. You didn't post your script therefore, instead of offering detailed advice, i will only make some general remarks. You are invited to post your...
Showing results 1 to 16 of 16

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