Search Results

Search: Posts Made By: Ymir
1,140
Posted By sea
Have you considered using the forum search...
Have you considered using the forum search function?
There are a few results regarding this topic which might solve your situation.

hth
1,140
Posted By RudiC
Any attempts from your side? What to be done to...
Any attempts from your side? What to be done to the large files? How do the logging applications react if the files are pulled out from under them?
4,114
Posted By Walter Misar
So according the docs you would expect 12 cores?...
So according the docs you would expect 12 cores? Can you verify this in the bios?

Anyway, you could check if it is a case of cores being offline to save power:

cat...
1,256
Posted By RudiC
Try alsoawk 'BEGIN {Y=20150206; print Y | "read...
Try alsoawk 'BEGIN {Y=20150206; print Y | "read X; date +\"%a,%b %d, %Y\" -d $X"}'
Fri,Feb 06, 2015
1,256
Posted By RavinderSingh13
Hello Ymir, Could you please try following...
Hello Ymir,

Could you please try following and let me know if this helps.

echo "20140206" | awk 'END{system("date -d"$0" +%A,%B,%d,%Y")}'


Output will be as follows.
...
1,256
Posted By RavinderSingh13
Hello Ymir, Could you please try following...
Hello Ymir,

Could you please try following and let me know if this helps.

date -d"20140206" +%A", "%B", "%d", "%Y


Output will be as follows.

Thursday, February, 06, 2014


NOTE:...
1,366
Posted By RudiC
Thanks. No I didn't. Its just about reading...
Thanks.
No I didn't. Its just about reading (and applying) man pages etc...
2,506
Posted By RudiC
Sorry, failed to mention you need to set the...
Sorry, failed to mention you need to set the extglob option: shopt -s extglob.
2,506
Posted By RudiC
Does this - executed on your servers, assuming...
Does this - executed on your servers, assuming you run a recent bash shell - yield what you need:ls @(full|level)*$(date +%Y%m%d -d-1day)* | { read FN; case "$FN" in full*) echo 10;; level*) echo 5;;...
2,506
Posted By RudiC
Sorry, I can't imagine the picture from what you...
Sorry, I can't imagine the picture from what you post. Wildly guessing: Do you need a script to be run on every server that checks all files and, if a full/level backup found within the last two...
2,506
Posted By RudiC
I don't see the necessity to use a variable if...
I don't see the necessity to use a variable if you run an ssh command. From what you showed in post #1, there is an entire directory listing to be processed, and you did not specify the output format...
2,506
Posted By RudiC
You assigned the ls result to the "output"...
You assigned the ls result to the "output" variable. To get at its contents, the shell needs to expand it: $output, to keep the shell from swallowing redundant spaces etc, quote it: "$output". To...
2,506
Posted By RavinderSingh13
Hello Ymir, Could you please try following...
Hello Ymir,

Could you please try following code and let us know if this helps.

output=`ls -ltr | awk '{print $NF}'
for i in ${output[@]}
do
echo $i | awk -F"_" -vYstd=$(date +"%Y%m%d"...
2,506
Posted By Don Cragun
First, never tell us: "i use your command and...
First, never tell us: "i use your command and make this script but it wouldn't work"! Show us the exact output from running the script that explains to us exactly what didn't work. If you don't...
2,506
Posted By RudiC
I'm not sure what [ll -hrt]should do. Any...
I'm not sure what [ll -hrt]should do. Any command's result, mayhap ls -l, can be piped into that awk cmd:ls -l | awk ' ... '
2,506
Posted By RudiC
What should your output look like?awk -F"_"...
What should your output look like?awk -F"_" -vYstd=$(date +"%Y%m%d" -d"-4 day")\
'$3>Ystd {if ($1 ~ "full") printf "10"
if ($1 ~ "level") printf "5"
...
2,506
Posted By Don Cragun
The methods for determining yesterday's date vary...
The methods for determining yesterday's date vary from system to system and shell to shell...

What operating system and shell are you using?
What is your timezone setting?
910
Posted By RudiC
I can't imagine how the OC4J comes into play. Not...
I can't imagine how the OC4J comes into play. Not sure if you need the upper case initials, either. However, with output being the file name with your results, tryawk 'NR<=3 {next}
...
2,167
Posted By RavinderSingh13
Hello Ymir, One more solution on same may...
Hello Ymir,

One more solution on same may help you.

awk -F"|" '(NR>3 && ($4 ~ /Down/ || $4 ~ /Alive/)){A=$4==" Down"?$2 OFS "0":$2 OFS "1";print A}' Input_file


Output will be as follows.
...
2,167
Posted By RudiC
Looks like your output variable contains more...
Looks like your output variable contains more lines than your sample in post #1. The first three items seem to reflect the header of your status which should be excluded by NR>3.
awk -F\| ...
2,167
Posted By Scrutinizer
Try: echo "$output"
Try:
echo "$output"
2,167
Posted By RudiC
Please use code tags as required by forum rules! ...
Please use code tags as required by forum rules!

Please make yourself familiar with "redirection" and "pipes" in *nix, e.g. man sh/bash/ksh.
Try
su - oracle...
2,167
Posted By Scrutinizer
Or: awk -F' *[|] *' '$4=="Down"{print $2 "=" 0}...
Or:
awk -F' *[|] *' '$4=="Down"{print $2 "=" 0} $4=="Alive"{print $2 "=" 1}' file
2,167
Posted By RudiC
No attempts nor ideas from your side? However,...
No attempts nor ideas from your side?
However, tryawk -F\| 'NR>3{gsub (/ /,_); print $2 "=" ($4=="Alive")}' file
DSA=0
logloaderd=0
dcm-daemon=1
home=1
officeauto=1
gaas=1
report=1...
2,167
Posted By Don Cragun
I'm not at all sure that I understand what you're...
I'm not at all sure that I understand what you're trying to do.

You say you want to print Home=1 (if it is Alive) or Home=2 (if it is down, but down with a lowercase d does not appear anywhere in...
Showing results 1 to 25 of 25

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