Search Results

Search: Posts Made By: infyanurag
760
Posted By infyanurag
Hi Rudic, thanks for the reply. May be I was not...
Hi Rudic, thanks for the reply. May be I was not clear enough.
The log file has the timestamp in it.
I will pass the from-time in the check job and it should sweep the log file after that...
760
Posted By infyanurag
Listing the contents of a file after a timestamp
Hi All
I have a file which contains the timestamp of the log and a message and I want to implement a polling mechanism, where this log file is pooled every 2 minutes and list the errors in the file....
1,168
Posted By infyanurag
Problem with this code is, its deleting the line...
Problem with this code is, its deleting the line if its finding the comment on right side of the file, I am in need to remove only /*<any text number etc>*/
this is not working if the line is
...
1,168
Posted By infyanurag
Removing a pattern in a line
Dear team,

I have a file curve.csv which is generated from oracle and each line has a comment associated with it, I want to get rid of this comment, can you please suggest me a command as how to...
1,738
Posted By infyanurag
Thanks all for the help
Thanks all for the help
1,738
Posted By infyanurag
Thanks Scrutinizer , the code worked well, 1...
Thanks Scrutinizer , the code worked well,

1 more question, is it possible to add one more level of validation,
like currently the code is working if the second column startes with _COM
I want...
1,738
Posted By infyanurag
Manipulating column in a file in UNIX
Hi

I have a file content.txt where I want to replace the value of second column of the file with half of the value of that column.
I only have to replace if the second column starts with COM_,...
17,285
Posted By infyanurag
Many Thanks to all, especially Yoda. Now I have...
Many Thanks to all, especially Yoda. Now I have learnt how to do this by your help
17,285
Posted By infyanurag
Thanks Yoda, it worked, can we also use it to get...
Thanks Yoda, it worked, can we also use it to get the second sunday?
I mean to get it generalized?
17,285
Posted By infyanurag
cal 1 2012 January 2012 S M Tu W Th F ...
cal 1 2012
January 2012
S M Tu W Th F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31


cal 1 2012 | awk 'NF==7 && !/^Su/{print...
17,285
Posted By infyanurag
Its not working, cal 12 2012 | awk 'NF==7 &&...
Its not working,

cal 12 2012 | awk 'NF==7 && !/^Su/{print $1;exit}'

is giving me S
I am looking for value that is 1
5,162
Posted By infyanurag
No, Cal -m command I want to make Monday...
No,
Cal -m command

I want to make Monday as first week of the month when I use cal command.

Cal -m makes it on Linux, but not un SunOS
5,162
Posted By infyanurag
Right, it does not work in bash. Can you please...
Right, it does not work in bash.
Can you please help me to put Monday as first day while using cal?

---------- Post updated at 09:21 PM ---------- Previous update was at 08:26 PM ----------

A...
3,446
Posted By infyanurag
Thanks all, I was able to get the result
Thanks all, I was able to get the result
17,285
Posted By infyanurag
Thanks Yoda, I will close the other threads...
Thanks Yoda,

I will close the other threads with suggestions and comments,
All the threads correspond to different questions/ arithmetic but I should close them if they are resolved.

Thanks...
17,285
Posted By infyanurag
How to get first sunday of the month?
Hi,

Please can someone help me in getting first sunday date of a month.

i_year=`date +%Y`
ny_first_sun_nov=`cal 10 $i_year | sed '/^$/d' |head -3 |tail -1| rev | cut -c1`

This works good...
5,162
Posted By infyanurag
Cal -m on bash
Hi,

I want to make Monday as the first day of the month while using cal command

when I execute without bash, its working fine
/bin/sh
cal -m 03 2013
March 2013
Mo Tu We Th Fr Sa Su
...
3,446
Posted By infyanurag
Second sunday of March
Hi,

I want to get the second Sunday of march in any year, I have tried below command but it is not giving me the correct output
i_year=`date +%Y`
cal -m 03 $i_year | sed '/^$/d' |head -4...
984
Posted By infyanurag
Checking the variable in UNIX
Hi,

I have a file abc.txt as
ABC,TYU,1.2566
AHG,GJJ,1.898
hgh,FGA,1.854

My program is reading each line and storing the values variables base_cy, quo_cy, ra_amt

Need to validate each of...
6,262
Posted By infyanurag
I am getting this :( 9905: Permission denied
I am getting this :(
9905: Permission denied
6,262
Posted By infyanurag
getting Details of pf -ef
Hi All,

I have a Linux server where many script run on daily basis through crontab.
I could see some entries on my name but I am not able to get the details.

>>ps -ef | grep an001

>>root ...
2,144
Posted By infyanurag
Pulling a file from Unix box thru https
Thanks for your reply.
I am a newbie to this.

Can you please let me know if there is any prerequisites to use CURL or WGET
like cetificates,keys etc .
2,144
Posted By infyanurag
Pulling a file from Unix box thru https
Hi

I have a file called as MSD.DAT. This file is present at a directory on a server.

www.ta.ibhsv.somewhere.com/rahdf/MSD.DAT

Now, I want to get this file from this server to my Linux box. I...
1,816
Posted By infyanurag
Define multiple mail recipents in a variable in perl
hi

I have a perl script from which I call a shell script and pass mail variable to it.
The mail works fine if I give 1 recipient but fails for multiple.

conv.pl:-
$mialing = "anu\@abc.com"...
1,627
Posted By infyanurag
Thanks fro your reply. It works perfect. just...
Thanks fro your reply.
It works perfect.
just a little confusion.
if the report contains
STARTOFREPORT
/path
file.txt
ENDOFREPORT

no file is created at the location.
Is there any way to...
Showing results 1 to 25 of 88

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