Search Results

Search: Posts Made By: jayadanabalan
4,986
Posted By jayadanabalan
Check zfs cache usage for Solaris 11.3
Hi All,

How do we calculate the zfs cache value from Solaris 11.3 ?? I normally use memstat but learnt that is not a good practice. Any other way to get the value ?
1,178
Posted By jayadanabalan
Hi, thanks for the reply. If i use "-1"...
Hi,

thanks for the reply.

If i use "-1" with month, then i get the below error.


diff=$(perl -e 'use Time::Local;
my ($month1,$day1,$year1)=split /\W+/, $ENV{'ddate'};
my...
1,178
Posted By jayadanabalan
Date difference using perl
Hi All,

I am using the below code to get the days difference between 2 dates


ddate="05/31/2018"
bdate="06/10/2018"
diff=$(perl -e 'use Time::Local;
my ($month1,$day1,$year1)=split /\W+/,...
1,792
Posted By jayadanabalan
Display dates between two dates
Hi All,

I have 2 dates in mm/dd format.


sdate=10/01 (October 01)
edate=10/10 (October 10)


I need the dates in between these 2 dates like below.


10/01
10/02
10/03
10/04
10/05...
1,203
Posted By jayadanabalan
works like a charm !!!! I got another issue...
works like a charm !!!!

I got another issue actually.

Say my bulk file is like seen below


==============
= Fruit : lkjlkjkl
= Veggie : rdhghjk
==============
zaq12wsx
xsw23edc...
1,203
Posted By jayadanabalan
Fetch lines between 1st and 4th similar pattern
Hi Folks,

I have a big file that looks like below


==========
kjhjl
kjlklkkhcgflj
fgf
==========
xsww23edc
ccdde3rfv
ceerfcc
vff4
==========
zaq12wsx
xsw23edc
==========
...
2,913
Posted By jayadanabalan
I am sending it to outlook and lotus notes. ...
I am sending it to outlook and lotus notes.

uuencode and redirecting the file, both comes with the word wrap issue.
2,913
Posted By jayadanabalan
Seen is my script #!/usr/bin/ksh ...
Seen is my script

#!/usr/bin/ksh

displayHeader()
{
echo "<html>"
echo "<table>"
echo "<tr> My Report Head </tr>"
echo "</table>"
echo "</html>"
}
displayHeader >> mailcontent.html
...
2,913
Posted By jayadanabalan
Hi, I am trying to send some report using...
Hi,

I am trying to send some report using html and I am opening the attachment inside the html file and sending it through mail.

I can see the html file is in correct format but when i get it...
2,913
Posted By jayadanabalan
Uuencode a html file with word wrap
Hi,

I have a file myfile.txt as seen below.


Name Age Days
--------- ------- --------
ABC 5 23
DEF 20 120


When i cat this file into a html...
1,878
Posted By jayadanabalan
That is working fine. the issue was with my file1...
That is working fine. the issue was with my file1 which is not in the correct format. When i print $2, it leaves the first 3 characters and fetches the remaining lines.

that was the reason i for...
1,878
Posted By jayadanabalan
Sorry, I gave that for sample. The list is...
Sorry, I gave that for sample. The list is actually huge so i just took some samples.

Please use the below jobs for testing the jobs from schedules.


A01G3GBOAPP1A#J01AQMSPSR2PWEB...
1,878
Posted By jayadanabalan
The other file contains data like...
The other file contains data like "A01G3GBOAPP1A#J01AQMSPCUSTSU" and there are more than 23000 records. Example seen below.


A01G3GDB1A#AEACCTBALMSTR
A01G3GDB1A#AEACCTBALMSTR_N...
1,878
Posted By jayadanabalan
This is a part of my big file #Mon-Sun...
This is a part of my big file


#Mon-Sun (incl hol)

SCHEDULE A01G3GBOAPP1A#J01AQMSPBATCH01
ON RUNCYCLE RULE1 "FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU"
UNTIL 1200 +1 DAYS ...
1,878
Posted By jayadanabalan
Hi Rudic, Thanks for the reply. The...
Hi Rudic,

Thanks for the reply.

The script is working with the example that i had given, but when i try this with a big file, the script doesnt seem to work. I am getting not in file1 for all...
1,878
Posted By jayadanabalan
Fetching a line matching a pattern
Hi Gurus,

I have a file as follows (Sample shown below but the list is very huge)


SCHEDULE WS1#JS1
RUNCYCLE1
:
WS1#JOB1
WS1#JOB2
FOLLOWS JOB1
END

SCHEDULE WS2#JS1
RUNCYCLE2
:...
1,256
Posted By jayadanabalan
That worked !!! Thanks a lot :)
That worked !!!

Thanks a lot :)
1,256
Posted By jayadanabalan
Leaving space inside sed
Hi Gurus,

I have 2 files

File1 :

veg apple
ap
pl
le
end

veg orange
or
an
ge
end


File2:
1,862
Posted By jayadanabalan
Print in next line after coma
Hi,

I have a file like seen below.


apple, orange, grapes
pineapple
tomato, potato
egg


I need a output like


apple
orange
grapes
pineapple
tomato
potato
2,345
Posted By jayadanabalan
OOps.. ok that worked !!!! Thanks much for...
OOps.. ok that worked !!!!

Thanks much for the replies... Great learning !!!!

Thanks a ton !!!
2,345
Posted By jayadanabalan
When i try this, i am getting answer as 16, but i...
When i try this, i am getting answer as 16, but i am supposed to get 136 when i use it with date stamp as well.

$ awk -F: '{mins=$1*60+$2+$3/60; diff=(mins-prev)} diff<0{diff+=1440} NR>1{printf...
2,345
Posted By jayadanabalan
Hi, I can fetch the time and date in the...
Hi,

I can fetch the time and date in the format seen below.

10/15/14 21:36:17
10/15/14 23:52:08

Now i need to find the difference in minutes or seconds.

I get the following error when i...
2,345
Posted By jayadanabalan
Hi, Thanks much for the reply. I have...
Hi,

Thanks much for the reply.

I have both the times line after line. The code that you gave me will work only if the time is in the same line i believe.

Any way we could find the difference...
2,345
Posted By jayadanabalan
Time difference in minutes
Hi Folks,

I have a text file that has only time in the format HH:MM:SS like seen below.

21:36:17
23:52:08

I need to find the difference in minutes alone from this text file so the result...
825
Posted By jayadanabalan
That worked :) :) :) Thanks much !!!
That worked :) :) :)

Thanks much !!!
Showing results 1 to 25 of 55

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