Search Results

Search: Posts Made By: ajju
2,842
Posted By ajju
Thanks, can we add log after the given ...
Thanks, can we add log after the given statement to check that job for the current completed or not...
2,842
Posted By ajju
Hi Corona, Sorry to say but still code...
Hi Corona,

Sorry to say but still code doesn't work as expected.

cant we have a other way by greping multiple pattern like date, jobname, and status code , if the abcd.job for the current...
2,842
Posted By ajju
Hi Rudie/Corona, Even if iam searching the...
Hi Rudie/Corona,

Even if iam searching the for today's log no output is coming even though for the today's date job got success.

So the main purpose of this job to check the status of the job,...
2,842
Posted By ajju
NIL
thank you very much Coron

But I tried the given code its giving a NIL output though the command is running successfully.

sed 's/^"/\n"/' np_log.txt | awk -v RS="" -v FS="\n" -v D="$(date...
2,842
Posted By ajju
To search the pattern on the basis of date and exit code
Hi,

I am getting scheduler log file on daily basis from windows box which contains job status and corresponding date, date is in windows format.

I wanted to write one script which will search...
7,466
Posted By ajju
Thank you very much SriniShoo and don, both...
Thank you very much SriniShoo and don, both codes are working as expected.

Can be closed as a RESOLVED THREAD
7,466
Posted By ajju
Sorry don for the confusion: Here the header...
Sorry don for the confusion:

Here the header looks like..


<?xml version="1.0" encoding="UTF-8"?>
<ns0:AbacusFile xmlns:ns0="urn:CPW:OTHERS:WGRS:rushandabacus">
<AbacuslFileHeader>
...
7,466
Posted By ajju
No, there is no blank line in a file. ...
No, there is no blank line in a file.

---------- Post updated at 11:55 PM ---------- Previous update was at 11:52 PM ----------

No,there is no blank line a file.
7,466
Posted By ajju
Thank a lot ! it is as expected. Only one...
Thank a lot ! it is as expected.

Only one thing is that in original file on seventh line we have a tag like

<TotalRecord>46048</TotalRecord>

and in each file it is replicating the same even...
7,466
Posted By ajju
any hint in shell scripting to process the below...
any hint in shell scripting to process the below request ?
7,466
Posted By ajju
CLX, thnx, wanted to make it generalized the...
CLX,
thnx, wanted to make it generalized the scenario the math i have given you that is the example records may vary for each new file.
7,466
Posted By ajju
Splitting XML file on basis of line number into multiple file
Hi All,

I have more than half million lines of XML file , wanted to split in four files in a such a way that top 7 lines should be present in each file on top and bottom line of should be present...
1,786
Posted By ajju
Dear Don, Thank you for a very tricky...
Dear Don,

Thank you for a very tricky solution but the splitted files are not getting process in the system because of the half of the tags are going in other files and some in others.

So here...
1,786
Posted By ajju
Pravin, Thanks for your input, but Its AIX -d...
Pravin,
Thanks for your input, but Its AIX -d not working:(

any other options?

---------- Post updated at 05:54 AM ---------- Previous update was at 03:17 AM ----------

cant we do it this...
1,786
Posted By ajju
Both the solutions are expected... primarily...
Both the solutions are expected...

primarily four files like with the same naming conventions as original appending 1,2,3 as suffix......

File1=5MB
file2= 5MB
file3= 5Mb
file4=8MB
1,786
Posted By ajju
Splitting a file into 4 files containing the same name pattern
Hello,

I have one file which is in size around 20 MB , wanted to split up into four files of each size of 5 MB.

ABCD_XYZ_20130302223203.xml.

Requirement is that to write script which should...
5,674
Posted By ajju
Sorry, The above one is not working, looks...
Sorry,
The above one is not working, looks -mtime not applicable.
This is an AIX flavour

---------- Post updated at 11:57 PM ---------- Previous update was at 05:03 AM ----------

Any update
5,674
Posted By ajju
Grep a pattern in current date logs
Hello,
I need to write one script which should search particular pattern like ABCD in log file name hello.txt only in current date logs.

in current directory i have so many past date logs but...
8,004
Posted By ajju
Thanks! it means it will work on for 11th...
Thanks!

it means it will work on for 11th and 12th month also right..

if [ "$month" -le "10" ] ; then
pmonth=0`echo $month`
else
pmonth=`echo $month`
8,004
Posted By ajju
Any other expert advice/ Suggestion to pass...
Any other expert advice/ Suggestion to pass previous month to script .
Any big head in Shell scripting..

As its a AIX so `date -d -1month +%Y%m` this one is also not working..

how to write...
8,004
Posted By ajju
Thanks Rudi, Cant we do `date '+%m'`-1 or...
Thanks Rudi,

Cant we do `date '+%m'`-1 or somewhat like calculations or

or can you please give me the code for wrapper script or inside the script modification..
8,004
Posted By ajju
How to Set crontab for 4th and 25th of every month?
Hello,

I wanted to set Crontab for 4th and 25th of every month at 5:00 PM.

Script should take previous month and current year as command line arguement like...

/home/test1.sh -f ABCD 03 2014...
1,722
Posted By ajju
Thanks a lot for all! all code are working.
Thanks a lot for all!
all code are working.
1,722
Posted By ajju
[Solved] Wanted to rename file
Hello ,

I wanted to rename one file which is having name as....

ABCD_PQRSTUVW_XYZ_20140205193338_00172_1.DAT
TO
ABCD0000_PQRSTUVW_20140205193338.DAT

here..
1.20140205193338 is the...
992
Posted By ajju
How to find the any log which is not updated since particular date?
Hello,

Iam running with one issue, since particular date looks like one of the script vanished from the system after restarting of the system.
I dont know which scrit it was but definatelt there...
Showing results 1 to 25 of 28

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